]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/SpinButton.py
Undid last commit and restored bool argument to wxFrame::DoGiveHelp() as
[wxWidgets.git] / wxPython / demo / SpinButton.py
index eb5504f006d8474ca06433021d70962dddf6da29..12fb117f1af3fa70f6b5188d346f44639cc4d5d2 100644 (file)
@@ -17,8 +17,12 @@ class TestPanel(wx.Panel):
 
         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 + 2
 
-        self.spin = wx.SpinButton(self, -1, (92, 50), (h, h), wx.SP_VERTICAL)
+        self.spin = wx.SpinButton(self, -1,
+                                  (w, 50),
+                                  (h*2/3, h),
+                                  wx.SP_VERTICAL)
         self.spin.SetRange(1, 100)
         self.spin.SetValue(1)
 
@@ -54,4 +58,4 @@ range is supported.
 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:])