wx.lib.agw.shapedbutton.__SToggleMixin¶
A mixin that allows to transform any of SButton, SBitmapButton and
SBitmapTextButton in the corresponding toggle buttons.
Class Hierarchy¶
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¶
- class __SToggleMixin(object)¶
A mixin that allows to transform any of
SButton,SBitmapButtonandSBitmapTextButtonin the corresponding toggle buttons.
Methods¶
- GetToggle(self)¶
Returns the toggled state of a button.
- OnKeyDown(self, event)¶
Handles the
wx.EVT_KEY_DOWNevent for the button.- Parameters:
event – a
KeyEventevent to be processed.
- OnKeyUp(self, event)¶
Handles the
wx.EVT_KEY_UPevent for the button.- Parameters:
event – a
KeyEventevent to be processed.
- OnLeftDown(self, event)¶
Handles the
wx.EVT_LEFT_DOWNevent for the button.- Parameters:
event – a
MouseEventevent to be processed.
- OnLeftUp(self, event)¶
Handles the
wx.EVT_LEFT_UPevent for the button.- Parameters:
event – a
MouseEventevent to be processed.
- OnMotion(self, event)¶
Handles the
wx.EVT_MOTIONevent for the button.- Parameters:
event – a
MouseEventevent to be processed.
- SetToggle(self, flag)¶
Sets the button as toggled/not toggled.
- Parameters:
flag –
Trueto set the button as toggled,Falseotherwise.