X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..cefae4bc3cac29222757afbd605867b34f421af9:/wxPython/demo/SpinButton.py diff --git a/wxPython/demo/SpinButton.py b/wxPython/demo/SpinButton.py index eb5504f006..4366d3c9d8 100644 --- a/wxPython/demo/SpinButton.py +++ b/wxPython/demo/SpinButton.py @@ -18,7 +18,7 @@ class TestPanel(wx.Panel): self.text = wx.TextCtrl(self, -1, "1", (30, 50), (60, -1)) h = self.text.GetSize().height - self.spin = wx.SpinButton(self, -1, (92, 50), (h, h), wx.SP_VERTICAL) + self.spin = wx.SpinButton(self, -1, (92, 50), (h/2, h), wx.SP_VERTICAL) self.spin.SetRange(1, 100) self.spin.SetValue(1) @@ -54,4 +54,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:])