 
       wx.SpinButton¶
  wx.SpinButton¶A wx.SpinButton has two small up and down (or left and right) arrow buttons.
It is often used next to a text control for increment and decrementing a value. Portable programs should try to use wx.SpinCtrl instead as wx.SpinButton is not implemented for all platforms but wx.SpinCtrl is as it degenerates to a simple wx.TextCtrl on such platforms.
 Window Styles¶
 Window Styles¶This class supports the following styles:
wx.SP_HORIZONTAL: Specifies a horizontal spin button (note that this style is not supported in wxGTK).wx.SP_VERTICAL: Specifies a vertical spin button.wx.SP_ARROW_KEYS: The user can use arrow keys to change the value.wx.SP_WRAP: The value wraps at the minimum and maximum. Events Emitted by this Class¶
 Events Emitted by this Class¶Handlers bound for the following event types will receive a wx.SpinEvent parameter.
Note that if you handle both SPIN and wx.UP or wx.DOWN events, you will be notified about each of them twice: first the UP/DOWN event will be received and then, if it wasn’t vetoed, the SPIN event will be sent.
Note
the range supported by this control (and   wx.SpinCtrl) depends on the platform but is at least  -0x8000   to   0x7fff . Under GTK and Win32 with sufficiently new version of   comctrl32.dll   (at least 4.71 is required, 5.80 is recommended) the full 32 bit range is supported.
See also
 Methods Summary¶
 Methods Summary¶| __init__ | Default constructor. | 
| Create | Scrollbar creation function called by the spin button constructor. | 
| GetMax | Returns the maximum permissible value. | 
| GetMin | Returns the minimum permissible value. | 
| GetRange | |
| GetValue | Returns the current spin button value. | 
| SetMax | |
| SetMin | |
| SetRange | Sets the range of the spin button. | 
| SetValue | Sets the value of the spin button. | 
 Properties Summary¶
 Properties Summary¶| Max | See GetMaxandSetMax | 
| Min | See GetMinandSetMin | 
| Range | See GetRange | 
| Value | See GetValueandSetValue | 
 Class API¶
 Class API¶wx.SpinButton(Control)¶Possible constructors:
SpinButton()
SpinButton(parent, id=-1, pos=DefaultPosition, size=DefaultSize,
           style=SP_VERTICAL, name="spinButton")
A SpinButton has two small up and down (or left and right) arrow buttons.
__init__(self, *args, **kw)¶__init__ (self)
Default constructor.
__init__ (self, parent, id=-1, pos=DefaultPosition, size=DefaultSize, style=SP_VERTICAL, name=”spinButton”)
Constructor, creating and showing a spin button.
| Parameters: | 
 | 
|---|
See also
Create(self, parent, id=-1, pos=DefaultPosition, size=DefaultSize, style=SP_VERTICAL, name="wxSpinButton")¶Scrollbar creation function called by the spin button constructor.
See wx.SpinButton for details.
| Parameters: | |
|---|---|
| Return type: | bool | 
GetRange(self)¶SetMax(self, maxVal)¶SetMin(self, minVal)¶SetRange(self, min, max)¶Sets the range of the spin button.
| Parameters: | 
 | 
|---|
SetValue(self, value)¶Sets the value of the spin button.
| Parameters: | value (int) – The value for the spin button. | 
|---|