From 78196de84e739ad175c5a0852eb1224908e4fe93 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 30 Nov 2018 14:42:16 -0800 Subject: [PATCH] Merge pull request #1090 from swt2c/remove_hardcode_spin Remove hard-coded sizes from wx.SpinButton and wx.SpinCtrlDouble in demo (cherry picked from commit 475d53388819cea98a833dd1243e626da2a840eb) --- 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)