- fgs.AddWindow(cb, 0, wxALIGN_CENTRE|wxALL, 5)
- EVT_CHECKBOX(self, cb.GetId(), self.OnUseCustom)
-
- fgs.AddSpacer(10, 10, 0, wxALIGN_CENTRE|wxALL, 5)
- fgs.AddSpacer(10, 10, 0, wxALIGN_CENTRE|wxALL, 5)
- fgs.AddSpacer(10, 10, 0, wxALIGN_CENTRE|wxALL, 5)
-
- box = wxBoxSizer(wxVERTICAL)
- bmp = wxEmptyBitmap(16,16)
- self.bmp16 = wxStaticBitmap(self, -1, bmp)
- box.AddWindow(self.bmp16, 0, wxALIGN_CENTRE|wxALL, 5)
- text = wxStaticText(self, -1, "16x16")
- box.AddWindow(text, 0, wxALIGN_CENTRE|wxALL, 5)
-
- fgs.AddSizer(box, 0, wxALIGN_CENTRE|wxALL, 5)
-
- box = wxBoxSizer(wxVERTICAL)
- bmp = wxEmptyBitmap(32,32)
- self.bmp32 = wxStaticBitmap(self, -1, bmp)
- box.AddWindow(self.bmp32, 0, wxALIGN_CENTRE|wxALL, 5)
- text = wxStaticText(self, -1, "32x32")
- box.AddWindow(text, 0, wxALIGN_CENTRE|wxALL, 5)
-
- fgs.AddSizer(box, 0, wxALIGN_CENTRE|wxALL, 5)
-
- box = wxBoxSizer(wxVERTICAL)
- bmp = wxEmptyBitmap(48,48)
- self.bmp48 = wxStaticBitmap(self, -1, bmp)
- box.AddWindow(self.bmp48, 0, wxALIGN_CENTRE|wxALL, 5)
- text = wxStaticText(self, -1, "48x48")
- box.AddWindow(text, 0, wxALIGN_CENTRE|wxALL, 5)
-
- fgs.AddSizer(box, 0, wxALIGN_CENTRE|wxALL, 5)
- sizer.AddSizer(fgs, 0, wxALL, 5)
+ fgs.Add(cb, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+ self.Bind(EVT_CHECKBOX, self.OnUseCustom, cb)
+
+ fgs.Add((10, 10), 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+ fgs.Add((10, 10), 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+ fgs.Add((10, 10), 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+
+ box = wx.BoxSizer(wx.VERTICAL)
+ bmp = wx.EmptyBitmap(16,16)
+ self.bmp16 = wx.StaticBitmap(self, -1, bmp)
+ box.Add(self.bmp16, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+ text = wx.StaticText(self, -1, "16x16")
+ box.Add(text, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+
+ fgs.Add(box, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+
+ box = wx.BoxSizer(wx.VERTICAL)
+ bmp = wx.EmptyBitmap(32,32)
+ self.bmp32 = wx.StaticBitmap(self, -1, bmp)
+ box.Add(self.bmp32, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+ text = wx.StaticText(self, -1, "32x32")
+ box.Add(text, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+
+ fgs.Add(box, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+
+ box = wx.BoxSizer(wx.VERTICAL)
+ bmp = wx.EmptyBitmap(48,48)
+ self.bmp48 = wx.StaticBitmap(self, -1, bmp)
+ box.Add(self.bmp48, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+ text = wx.StaticText(self, -1, "48x48")
+ box.Add(text, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+
+ fgs.AddSizer(box, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
+ sizer.Add(fgs, 0, wx.ALL, 5)