SpinCtrlDouble combines TextCtrl and SpinButton in one control and displays a real number.
( SpinCtrl displays an integer.)
This class supports the following styles:
Handlers bound for the following event types will receive a SpinDoubleEvent parameter.
See also
__init__ | Default constructor. |
Create | Creation function called by the spin control constructor. |
GetDigits | Gets the number of digits in the display. |
GetIncrement | Gets the increment value. |
GetMax | Gets maximal allowable value. |
GetMin | Gets minimal allowable value. |
GetRange | |
GetValue | Gets the value of the spin control. |
SetDigits | Sets the number of digits in the display. |
SetIncrement | Sets the increment value. |
SetMax | |
SetMin | |
SetRange | Sets range of allowable values. |
SetValue | Sets the value of the spin control. |
Digits | See GetDigits and SetDigits |
Increment | See GetIncrement and SetIncrement |
Max | See GetMax and SetMax |
Min | See GetMin and SetMin |
Range | See GetRange |
Value | See GetValue and SetValue |
SpinCtrlDouble combines TextCtrl and SpinButton in one control and displays a real number.
Possible constructors:
SpinCtrlDouble()
SpinCtrlDouble(parent, id=ID_ANY, value='',
pos=DefaultPosition, size=DefaultSize, style=SP_ARROW_KEYS, min=0,
max=100, initial=0, inc=1, name=T("wxSpinCtrlDouble"))
Overloaded Implementations:
__init__ (self)
Default constructor.
__init__ (self, parent, id=ID_ANY, value=’‘, pos=DefaultPosition, size=DefaultSize, style=SP_ARROW_KEYS, min=0, max=100, initial=0, inc=1, name=T(“wxSpinCtrlDouble”))
Constructor, creating and showing a spin control.
Parameters: |
|
---|
See also
Creation function called by the spin control constructor.
See SpinCtrlDouble for details.
Parameters: | |
---|---|
Return type: | bool |
Gets the number of digits in the display.
Return type: | int |
---|
Gets the increment value.
Return type: | float |
---|
Gets maximal allowable value.
Return type: | float |
---|
Gets minimal allowable value.
Return type: | float |
---|
Gets the value of the spin control.
Return type: | float |
---|
Sets the number of digits in the display.
Parameters: | digits (int) – |
---|
Sets the increment value.
Parameters: | inc (float) – |
---|
Sets range of allowable values.
Parameters: |
|
---|
Overloaded Implementations:
SetValue (self, text)
Sets the value of the spin control.
Use the variant using float instead.
Parameters: | text (string) – |
---|
SetValue (self, value)
Sets the value of the spin control.
Parameters: | value (float) – |
---|
See GetIncrement and SetIncrement