wx.SpinEvent

Inheritance diagram for wx.SpinEvent:



Description

This event class is used for the events generated by wx.SpinButton and wx.SpinCtrl.

See also

wx.SpinButton and wx.SpinCtrl

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.

Properties Summary

Class API

Methods

__init__(commandType=wx.wxEVT_NULL, winid=0)

This constructor is not normally used in user code.

Parameters:

  • commandType (eventtype)
  • winid (int)

Returns:

wx.SpinEvent


GetPosition()

Retrieve the current spin button or control value.


Returns:

int


SetPosition(pos)

Set the value associated with the event.

Parameters:

  • pos (int)

Properties

Position
See GetPosition and SetPosition