This event class is used for the events generated by wx.SpinButton and wx.SpinCtrl.
Handlers bound for the following event types will receive a wx.SpinEvent parameter.
EVT_SPIN: Generated whenever an arrow is pressed.
EVT_SPIN_UP: Generated when left/up arrow is pressed.
EVT_SPIN_DOWN: Generated when right/down arrow is pressed.
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.
See also
The constructor is not normally used by the user code. |
|
Retrieve the current spin button or control value. |
|
Set the value associated with the event. |
See |
Possible constructors:
SpinEvent(commandType=wxEVT_NULL, id=0)
This event class is used for the events generated by SpinButton and SpinCtrl.
The constructor is not normally used by the user code.
commandType (wx.EventType) –
id (int) –
Retrieve the current spin button or control value.
int
Set the value associated with the event.
pos (int) –
See GetPosition
and SetPosition