X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fded56b375bf7a4687af1cdb182899614c1b2a8..ed8e1ecb3fdabbbe5062ebba2a50a2bc8d1e2c76:/wxPython/demo/Sizers.py diff --git a/wxPython/demo/Sizers.py b/wxPython/demo/Sizers.py index 0fb4657edc..609a13f043 100644 --- a/wxPython/demo/Sizers.py +++ b/wxPython/demo/Sizers.py @@ -82,7 +82,7 @@ def makeSimpleBox7(win): box.Add(wxButton(win, 1010, "one"), 0, wxEXPAND) box.Add(wxButton(win, 1010, "two"), 0, wxEXPAND) box.Add(wxButton(win, 1010, "three"), 0, wxEXPAND) - box.Add(60, 20, 0, wxEXPAND) + box.Add((60, 20), 0, wxEXPAND) box.Add(wxButton(win, 1010, "five"), 1, wxEXPAND) return box @@ -92,9 +92,9 @@ def makeSimpleBox7(win): def makeSimpleBox8(win): box = wxBoxSizer(wxVERTICAL) box.Add(wxButton(win, 1010, "one"), 0, wxEXPAND) - box.Add(0,0, 1) + box.Add((0,0), 1) box.Add(wxButton(win, 1010, "two"), 0, wxALIGN_CENTER) - box.Add(0,0, 1) + box.Add((0,0), 1) box.Add(wxButton(win, 1010, "three"), 0, wxEXPAND) box.Add(wxButton(win, 1010, "four"), 0, wxEXPAND) # box.Add(wxButton(win, 1010, "five"), 1, wxEXPAND) @@ -362,7 +362,7 @@ theTests = [ ), ("Add a stretchable", makeSimpleBox3, - "We've added one more button with the strechable flag turned on. Notice " + "We've added one more button with the stretchable flag turned on. Notice " "how it grows to fill the extra space in the otherwise fixed dimension." ), @@ -372,7 +372,7 @@ theTests = [ ), ("Weighting factor", makeSimpleBox5, - "This one shows more than one strechable, but one of them has a weighting " + "This one shows more than one stretchable, but one of them has a weighting " "factor so it gets more of the free space." ), @@ -421,7 +421,7 @@ theTests = [ ), ("Boxes inside a Border", makeBoxInBorder, - "Sizers of different types can be nested withing each other as well. " + "Sizers of different types can be nested within each other as well. " "Here is a box sizer with several buttons embedded within a border sizer." ), @@ -434,7 +434,7 @@ theTests = [ ("Simple Grid", makeGrid1, "This is an example of the wxGridSizer. In this case all row heights " "and column widths are kept the same as all the others and all items " - "fill their available space. The horzontal and vertical gaps are set to " + "fill their available space. The horizontal and vertical gaps are set to " "2 pixels each." ), @@ -461,7 +461,7 @@ theTests = [ ("Proportional resize", makeSimpleBoxShaped, "Managed items can preserve their original aspect ratio. The last item has the " - "wxSHAPED flag set and will resize proportional to its origingal size." + "wxSHAPED flag set and will resize proportional to its original size." ), ("Proportional resize with Alignments", makeShapes,