X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ab5d4883f3b51e88ccdd3b59fb0e000b3b6ad0f..b4eecebd423df0c6efe86d7658cd3df818d67ed8:/wxPython/demo/SpinButton.py diff --git a/wxPython/demo/SpinButton.py b/wxPython/demo/SpinButton.py index f56f804832..12fb117f1a 100644 --- a/wxPython/demo/SpinButton.py +++ b/wxPython/demo/SpinButton.py @@ -17,9 +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 + w = self.text.GetSize().width + self.text.GetPosition().x + 2 - self.spin = wx.SpinButton(self, -1, (w + 6, 50), (h/2, 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)