
wx.lib.agw.shapedbutton.__SToggleMixin¶A mixin that allows to transform any of SButton, SBitmapButton and
SBitmapTextButton in the corresponding toggle buttons.
Class Hierarchy¶
Inheritance diagram for class __SToggleMixin:

Known Subclasses¶wx.lib.agw.shapedbutton.SBitmapTextToggleButton, wx.lib.agw.shapedbutton.SBitmapToggleButton, wx.lib.agw.shapedbutton.SToggleButton
Methods Summary¶Returns the toggled state of a button. |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Sets the button as toggled/not toggled. |
Class API¶__SToggleMixin(object)¶A mixin that allows to transform any of SButton, SBitmapButton and
SBitmapTextButton in the corresponding toggle buttons.
GetToggle(self)¶Returns the toggled state of a button.
OnKeyDown(self, event)¶Handles the wx.EVT_KEY_DOWN event for the button.
event – a KeyEvent event to be processed.
OnKeyUp(self, event)¶Handles the wx.EVT_KEY_UP event for the button.
event – a KeyEvent event to be processed.
OnLeftDown(self, event)¶Handles the wx.EVT_LEFT_DOWN event for the button.
event – a MouseEvent event to be processed.
OnLeftUp(self, event)¶Handles the wx.EVT_LEFT_UP event for the button.
event – a MouseEvent event to be processed.
OnMotion(self, event)¶Handles the wx.EVT_MOTION event for the button.
event – a MouseEvent event to be processed.
SetToggle(self, flag)¶Sets the button as toggled/not toggled.
flag – True to set the button as toggled, False otherwise.