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)
if __name__ == '__main__':
import sys,os
import run
- run.main(['', os.path.basename(sys.argv[0])])
+ run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])