- bpos = wxDefaultPosition
- bsize = wxSize(100, 50)
- gs = wxGridSizer(3, 3, 2, 2) # rows, cols, hgap, vgap
-
- gs.AddMany([ (wxButton(win, 1010, 'one', bpos, bsize),
- 0, wxSHAPED | wxALIGN_TOP | wxALIGN_LEFT ),
- (wxButton(win, 1010, 'two', bpos, bsize),
- 0, wxSHAPED | wxALIGN_TOP | wxALIGN_CENTER_HORIZONTAL ),
- (wxButton(win, 1010, 'three', bpos, bsize),
- 0, wxSHAPED | wxALIGN_TOP | wxALIGN_RIGHT ),
- (wxButton(win, 1010, 'four', bpos, bsize),
- 0, wxSHAPED | wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT ),
- (wxButton(win, 1010, 'five', bpos, bsize),
- 0, wxSHAPED | wxALIGN_CENTER ),
- (wxButton(win, 1010, 'six', bpos, bsize),
- 0, wxSHAPED | wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT ),
- (wxButton(win, 1010, 'seven', bpos, bsize),
- 0, wxSHAPED | wxALIGN_BOTTOM | wxALIGN_LEFT ),
- (wxButton(win, 1010, 'eight', bpos, bsize),
- 0, wxSHAPED | wxALIGN_BOTTOM | wxALIGN_CENTER_HORIZONTAL ),
- (wxButton(win, 1010, 'nine', bpos, bsize),
- 0, wxSHAPED | wxALIGN_BOTTOM | wxALIGN_RIGHT ),
+ bpos = wx.DefaultPosition
+ bsize = wx.Size(100, 50)
+ gs = wx.GridSizer(3, 3, 2, 2) # rows, cols, hgap, vgap
+
+ gs.AddMany([ (SampleWindow(win, 'one', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_TOP | wx.ALIGN_LEFT ),
+ (SampleWindow(win, 'two', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_TOP | wx.ALIGN_CENTER_HORIZONTAL ),
+ (SampleWindow(win, 'three', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_TOP | wx.ALIGN_RIGHT ),
+ (SampleWindow(win, 'four', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT ),
+ (SampleWindow(win, 'five', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_CENTER ),
+ (SampleWindow(win, 'six', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_RIGHT ),
+ (SampleWindow(win, 'seven', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_BOTTOM | wx.ALIGN_LEFT ),
+ (SampleWindow(win, 'eight', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL ),
+ (SampleWindow(win, 'nine', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_BOTTOM | wx.ALIGN_RIGHT ),