This event class is used for the events generated by SpinButton and SpinCtrl.
Handlers bound for the following event types will receive a SpinEvent parameter.
Note that if you handle both SPIN and UP or 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
SpinButton and SpinCtrl
__init__ | The constructor is not normally used by the user code. |
GetPosition | Retrieve the current spin button or control value. |
SetPosition | Set the value associated with the event. |
This event class is used for the events generated by SpinButton and SpinCtrl.
Possible constructors:
SpinEvent(commandType=wxEVT_NULL, id=0)
The constructor is not normally used by the user code.
Parameters: |
|
---|
Retrieve the current spin button or control value.
Return type: | int |
---|
Set the value associated with the event.
Parameters: | pos (int) – |
---|
See GetPosition and SetPosition