wx.lib.agw.aquabutton.__ToggleMixin¶
A mixin that allows to transform AquaButton in the corresponding toggle button.
Class Hierarchy¶
Known Subclasses¶
wx.lib.agw.aquabutton.AquaToggleButton
Methods Summary¶
Returns the toggled state of a button. |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Sets the button as toggled/not toggled. |
Class API¶
- class __ToggleMixin(object)¶
A mixin that allows to transform
AquaButtonin the corresponding toggle button.
Methods¶
- GetToggle(self)¶
Returns the toggled state of a button.
- Returns:
Trueis the button is toggled,Falseif it is not toggled.
- OnKeyDown(self, event)¶
Handles the
wx.EVT_KEY_DOWNevent forAquaButtonwhen used as toggle button.- Parameters:
event – a
KeyEventevent to be processed.
- OnKeyUp(self, event)¶
Handles the
wx.EVT_KEY_UPevent forAquaButtonwhen used as toggle button.- Parameters:
event – a
KeyEventevent to be processed.
- OnLeftDown(self, event)¶
Handles the
wx.EVT_LEFT_DOWNevent forAquaButtonwhen used as toggle button.- Parameters:
event – a
MouseEventevent to be processed.
- OnLeftUp(self, event)¶
Handles the
wx.EVT_LEFT_UPevent forAquaButtonwhen used as toggle button.- Parameters:
event – a
MouseEventevent to be processed.
- OnMotion(self, event)¶
Handles the
wx.EVT_MOTIONevent forAquaButtonwhen used as toggle button.- Parameters:
event – a
MouseEventevent to be processed.
- OnPaint(self, event)¶
Handles the
wx.EVT_PAINTevent forAquaButtonwhen used as toggle button.- Parameters:
event – a
PaintEventevent to be processed.
- SetToggle(self, flag)¶
Sets the button as toggled/not toggled.
- Parameters:
flag (bool) –
Trueto set the button as toggled,Falseotherwise.