From 9739c66a2c39638315b08ff9397e1866f48fa9d7 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Tue, 27 Nov 2018 19:59:35 -0500 Subject: [PATCH] Remove hard-coded sizes from wx.SpinButton and wx.SpinCtrlDouble in demo --- demo/SpinButton.py | 2 +- demo/SpinCtrlDouble.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/SpinButton.py b/demo/SpinButton.py index db4b2d50..747e2d4b 100644 --- a/demo/SpinButton.py +++ b/demo/SpinButton.py @@ -23,7 +23,7 @@ class TestPanel(wx.Panel): self.spin = wx.SpinButton(self, -1, (w, 50), - (h*2/3, h), + (-1, -1), wx.SP_VERTICAL) self.spin.SetRange(1, 100) self.spin.SetValue(1) diff --git a/demo/SpinCtrlDouble.py b/demo/SpinCtrlDouble.py index a7b69e83..1527e4e4 100644 --- a/demo/SpinCtrlDouble.py +++ b/demo/SpinCtrlDouble.py @@ -10,7 +10,7 @@ class TestPanel(wx.Panel): wx.Panel.__init__(self, parent, -1) wx.StaticText(self, -1, "wx.SpinCtrlDouble:", pos=(25,25)) - spin = wx.SpinCtrlDouble(self, value='0.00', pos=(75,50), size=(80,-1), + spin = wx.SpinCtrlDouble(self, value='0.00', pos=(75,50), min=-5.0, max=25.25, inc=0.25) spin.SetDigits(2)