]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/CheckListBox.py
layout tweak (it should use a sizer though)
[wxWidgets.git] / wxPython / demo / CheckListBox.py
index 904ac1bb256534cfce30f2a6d1b39d86d8befc37..bfc4d40a439e837c849bce007b7a4615ad22c801 100644 (file)
@@ -14,7 +14,7 @@ class TestPanel(wx.Panel):
 
         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)
@@ -83,5 +83,5 @@ labels dynamically.
 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:])