From d1f46a1c4d50ed5f29bc5a146968e776ae4cb00f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 11 Oct 2004 22:16:06 +0000 Subject: [PATCH] Use a better fixed size for the spin button git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/SpinButton.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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) -- 2.45.2