X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8eca4fef106b8327e2e55636de3f68a511a4c392..6a52ea5cb81dcd07c286d34b80945534780fe05f:/wxPython/demo/SpinButton.py?ds=sidebyside diff --git a/wxPython/demo/SpinButton.py b/wxPython/demo/SpinButton.py index 4366d3c9d8..12fb117f1a 100644 --- a/wxPython/demo/SpinButton.py +++ b/wxPython/demo/SpinButton.py @@ -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/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)