]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/TextCtrl.py
wxCheckListBox doesn't require wxUSE_OWNER_DRAWN when using WXUNIVERSAL
[wxWidgets.git] / wxPython / demo / TextCtrl.py
index b12a113b1376a86a050e6286f7fb8c4b8d07e3fb..77fc77b9e5f0b9a3f769e0f724e76d2d883ca32d 100644 (file)
@@ -70,12 +70,13 @@ class TestPanel(wx.Panel):
         t5.Bind(wx.EVT_LEFT_DOWN, self.OnT5LeftDown)
         self.t5 = t5
 
         t5.Bind(wx.EVT_LEFT_DOWN, self.OnT5LeftDown)
         self.t5 = t5
 
+        space = 4
         bsizer = wx.BoxSizer(wx.VERTICAL)
         bsizer = wx.BoxSizer(wx.VERTICAL)
-        bsizer.Add(b, 0, wx.GROW|wx.ALL, 4)
-        bsizer.Add(b2, 0, wx.GROW|wx.ALL, 4)
-        bsizer.Add(b3, 0, wx.GROW|wx.ALL, 4)
+        bsizer.Add(b, 0, wx.GROW|wx.ALL, space)
+        bsizer.Add(b2, 0, wx.GROW|wx.ALL, space)
+        bsizer.Add(b3, 0, wx.GROW|wx.ALL, space)
 
 
-        sizer = wx.FlexGridSizer(cols=3, hgap=6, vgap=6)
+        sizer = wx.FlexGridSizer(cols=3, hgap=space, vgap=space)
         sizer.AddMany([ l1, t1, (0,0),
                         l2, t2, (0,0),
                         l3, t3, bsizer,
         sizer.AddMany([ l1, t1, (0,0),
                         l2, t2, (0,0),
                         l3, t3, bsizer,
@@ -168,5 +169,5 @@ text masking for such things as passwords.
 if __name__ == '__main__':
     import sys,os
     import run
 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:])