+def makeGrid1(win):
+ gs = wxGridSizer(3, 3, 2, 2) # rows, cols, hgap, vgap
+
+ gs.AddMany([ (wxButton(win, 1010, 'one'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'two'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'three'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'four'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'five'), 0, wxEXPAND),
+ #(75, 50),
+ (wxButton(win, 1010, 'six'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'seven'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'eight'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'nine'), 0, wxEXPAND),
+ ])
+
+ return gs
+
+#----------------------------------------------------------------------
+
+def makeGrid2(win):
+ gs = wxGridSizer(3, 3) # rows, cols, hgap, vgap
+
+ box = wxBoxSizer(wxVERTICAL)
+ box.Add(wxButton(win, 1010, 'A'), 0, wxEXPAND)
+ box.Add(wxButton(win, 1010, 'B'), 1, wxEXPAND)
+
+ gs2 = wxGridSizer(2,2, 4, 4)
+ gs2.AddMany([ (wxButton(win, 1010, 'C'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'E'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'F'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'G'), 0, wxEXPAND)])
+
+ gs.AddMany([ (wxButton(win, 1010, 'one'), 0, wxALIGN_RIGHT | wxALIGN_BOTTOM),
+ (wxButton(win, 1010, 'two'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'three'), 0, wxALIGN_LEFT | wxALIGN_BOTTOM),
+ (wxButton(win, 1010, 'four'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'five'), 0, wxCENTER),
+ (wxButton(win, 1010, 'six'), 0, wxEXPAND),
+ (box, 0, wxEXPAND | wxALL, 10),
+ (wxButton(win, 1010, 'eight'), 0, wxEXPAND),
+ (gs2, 0, wxEXPAND | wxALL, 4),
+ ])
+
+ return gs
+
+#----------------------------------------------------------------------
+
+def makeGrid3(win):
+ gs = wxFlexGridSizer(3, 3, 2, 2) # rows, cols, hgap, vgap
+
+ gs.AddMany([ (wxButton(win, 1010, 'one'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'two'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'three'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'four'), 0, wxEXPAND),
+ #(wxButton(win, 1010, 'five'), 0, wxEXPAND),
+ (175, 50),
+ (wxButton(win, 1010, 'six'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'seven'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'eight'), 0, wxEXPAND),
+ (wxButton(win, 1010, 'nine'), 0, wxEXPAND),
+ ])
+
+ gs.AddGrowableRow(0)
+ gs.AddGrowableRow(2)
+ gs.AddGrowableCol(1)
+ return gs
+
+#----------------------------------------------------------------------
+