mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Merge pull request #1090 from swt2c/remove_hardcode_spin
Remove hard-coded sizes from wx.SpinButton and wx.SpinCtrlDouble in demo
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user