GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.SpinButton — wxPython 4.3.2 Docs
|
Default constructor. |
|
Scrollbar creation function called by the spin button constructor. |
|
Get the value for increment for a spin control. |
|
Returns the maximum permissible value. |
|
Returns the minimum permissible value. |
|
Returns the current spin button value. |
|
Sets the increment for the control. |
|
Sets the range of the spin button. |
|
Sets the value of the spin button. |
Properties Summary¶See |
|
See |
|
Class API¶Possible constructors:
SpinButton() -> None SpinButton(parent, id=-1, pos=DefaultPosition, size=DefaultSize, style=SP_VERTICAL, name="spinButton") -> None
A SpinButton has two small up and down (or left and right) arrow buttons.
__init__ (self)
Default constructor.
None
__init__ (self, parent, id=-1, pos=DefaultPosition, size=DefaultSize, style=SP_VERTICAL, name=”spinButton”)
Constructor, creating and showing a spin button.
parent (wx.Window) – Parent window. Must not be nullptr.
id (wx.WindowID) – Window identifier. The value wx.ID_ANY indicates a default value.
pos (wx.Point) – Window position. If wx.DefaultPosition is specified then a default position is chosen.
size (wx.Size) – Window size. If wx.DefaultSize is specified then a default size is chosen.
style (long) – Window style. See wx.SpinButton class description.
name (string) – Window name.
None
See also
Scrollbar creation function called by the spin button constructor.
See wx.SpinButton for details.
variant (WindowVariant)
Get the value for increment for a spin control.
The default value is 1 but it can be changed using SetIncrement .
int
Added in version 4.1/wxWidgets-3.1.6.
Sets the increment for the control.
The increment is the number by which the value changes when the up or down arrow is used.
The default is 1.
This function is currently implemented only in wxMSW and does nothing under the other platforms.
value (int)
None
Added in version 4.1/wxWidgets-3.1.6.
See also
Sets the range of the spin button.
In portable code, min should be less than or equal to max. In wxMSW it is possible to specify minimum greater than maximum and the native control supports the same range as if they were reversed, but swaps the meaning of up and down arrows, however this dubious feature is not supported on other platforms.
min (int) – The minimum value for the spin button.
max (int) – The maximum value for the spin button.
None
Sets the value of the spin button.
value (int) – The value for the spin button.
None
See GetIncrement and SetIncrement