box.Add(wxButton(win, 1010, "one"), 0, wxEXPAND)
box2 = wxBoxSizer(wxHORIZONTAL)
- box2.AddMany([ (wxButton(win, 1010, "two"), 0, wxEXPAND),
- (wxButton(win, 1010, "three"), 0, wxEXPAND),
- (wxButton(win, 1010, "four"), 0, wxEXPAND),
- (wxButton(win, 1010, "five"), 0, wxEXPAND),
- ])
+ box2.Add(wxButton(win, 1010, "two"), 0, wxEXPAND)
+ btn3 = wxButton(win, 1010, "three")
+ box2.Add(btn3, 0, wxEXPAND)
+ box2.Add(wxButton(win, 1010, "four"), 0, wxEXPAND)
+ box2.Add(wxButton(win, 1010, "five"), 0, wxEXPAND)
box3 = wxBoxSizer(wxVERTICAL)
box3.AddMany([ (wxButton(win, 1010, "six"), 0, wxEXPAND),
box.Add(wxButton(win, 1010, "ten"), 0, wxEXPAND)
+ ##box.Hide(btn3)
+
return box
#----------------------------------------------------------------------
),
("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."
),
),
("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."
),
),
("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."
),
("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."
),
("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,