************ wx.SpinEvent ************ Inheritance diagram for `wx.SpinEvent`: | .. inheritance-diagram:: wx.SpinEvent | Description =========== This event class is used for the events generated by `wx.SpinButton <../Widgets/wx.SpinButton.html>`_ and `wx.SpinCtrl <../Widgets/wx.SpinCtrl.html>`_. .. seealso:: `wx.SpinButton <../Widgets/wx.SpinButton.html>`_ and `wx.SpinCtrl <../Widgets/wx.SpinCtrl.html>`_ Derived From ^^^^^^^^^^^^^ * `wx.NotifyEvent `_ * `wx.CommandEvent `_ * `wx.Event `_ * `wx.Object <../Widgets/wx.Object.html>`_ Event Handling ^^^^^^^^^^^^^^ ================================================== ================================================== Event Name Description ================================================== ================================================== wx.EVT_SPIN(id, func) Generated whenever an arrow is pressed. wx.EVT_SPIN_UP(id, func) Generated when left/up arrow is pressed. wx.EVT_SPIN_DOWN(id, func) Generated when right/down arrow is pressed. ================================================== ================================================== Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `GetPosition <#GetPosition>`_ * `SetPosition <#SetPosition>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `Position <#Position>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(commandType=wx.wxEVT_NULL, winid=0) This constructor is not normally used in user code. **Parameters:** * `commandType` (eventtype) * `winid` (int) | **Returns:** `wx.SpinEvent `_ -------- .. method:: GetPosition() Retrieve the current spin button or control value. | **Returns:** `int` -------- .. method:: SetPosition(pos) Set the value associated with the event. **Parameters:** * `pos` (int) -------- Properties ^^^^^^^^^^ .. attribute:: Position See `GetPosition <#GetPosition>`_ and `SetPosition <#SetPosition>`_