wx.StaticText(self, -1, "This example uses the wxCheckListBox control.", (45, 15))
- lb = wx.CheckListBox(self, -1, (80, 50), (80, 120), sampleList)
+ lb = wx.CheckListBox(self, -1, (80, 50), wx.DefaultSize, sampleList)
self.Bind(wx.EVT_LISTBOX, self.EvtListBox, lb)
self.Bind(wx.EVT_LISTBOX_DCLICK, self.EvtListBoxDClick, lb)
lb.SetSelection(0)
wx.StaticText(self, -1, "This example uses the wxChoice control.", (15, 10))
wx.StaticText(self, -1, "Select one:", (15, 50), (75, 20))
- self.ch = wx.Choice(self, -1, (80, 50), choices = sampleList)
+ self.ch = wx.Choice(self, -1, (90, 50), choices = sampleList)
self.Bind(wx.EVT_CHOICE, self.EvtChoice, self.ch)
#----------------------------------------------------------------------
def runTest(frame, nb, log):
- win = TestPanel(nb, log)
- return win
+ if wx.Platform == "__WXMAC__":
+ wx.MessageBox("This demo currently fails on the Mac.",
+ "Sorry")
+ return
+ else:
+ win = TestPanel(nb, log)
+ return win
#----------------------------------------------------------------------
self.text = wx.TextCtrl(self, -1, "1", (30, 50), (60, -1))
h = self.text.GetSize().height
+ w = self.text.GetSize().width + self.text.GetPosition().x
- self.spin = wx.SpinButton(self, -1, (92, 50), (h/2, h), wx.SP_VERTICAL)
+ self.spin = wx.SpinButton(self, -1, (w + 6, 50), (h/2, h), wx.SP_VERTICAL)
self.spin.SetRange(1, 100)
self.spin.SetValue(1)
self.count = 0
wx.StaticText(self, -1, "This example uses the wx.SpinCtrl control.", (45, 15))
- sc = wx.SpinCtrl(self, -1, "", (30, 50), (80, -1))
+ sc = wx.SpinCtrl(self, -1, "", (30, 50))
sc.SetRange(1,100)
sc.SetValue(5)