- 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([ (wx.Button(win, -1, 'one', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_TOP | wx.ALIGN_LEFT ),
+ (wx.Button(win, -1, 'two', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_TOP | wx.ALIGN_CENTER_HORIZONTAL ),
+ (wx.Button(win, -1, 'three', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_TOP | wx.ALIGN_RIGHT ),
+ (wx.Button(win, -1, 'four', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT ),
+ (wx.Button(win, -1, 'five', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_CENTER ),
+ (wx.Button(win, -1, 'six', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_RIGHT ),
+ (wx.Button(win, -1, 'seven', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_BOTTOM | wx.ALIGN_LEFT ),
+ (wx.Button(win, -1, 'eight', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL ),
+ (wx.Button(win, -1, 'nine', bpos, bsize),
+ 0, wx.SHAPED | wx.ALIGN_BOTTOM | wx.ALIGN_RIGHT ),