A mixin that allows to transform AquaButton
in the corresponding toggle button.
wx.lib.agw.aquabutton.AquaToggleButton
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. |
__ToggleMixin
(object)¶A mixin that allows to transform AquaButton
in the corresponding toggle button.
GetToggle
(self)¶Returns the toggled state of a button.
True
is the button is toggled, False
if it is not toggled.
OnKeyDown
(self, event)¶Handles the wx.EVT_KEY_DOWN
event for AquaButton
when used as toggle button.
event – a KeyEvent
event to be processed.
OnKeyUp
(self, event)¶Handles the wx.EVT_KEY_UP
event for AquaButton
when used as toggle button.
event – a KeyEvent
event to be processed.
OnLeftDown
(self, event)¶Handles the wx.EVT_LEFT_DOWN
event for AquaButton
when used as toggle button.
event – a MouseEvent
event to be processed.
OnLeftUp
(self, event)¶Handles the wx.EVT_LEFT_UP
event for AquaButton
when used as toggle button.
event – a MouseEvent
event to be processed.
OnMotion
(self, event)¶Handles the wx.EVT_MOTION
event for AquaButton
when used as toggle button.
event – a MouseEvent
event to be processed.
OnPaint
(self, event)¶Handles the wx.EVT_PAINT
event for AquaButton
when used as toggle button.
event – a PaintEvent
event to be processed.
SetToggle
(self, flag)¶Sets the button as toggled/not toggled.
flag (bool) – True
to set the button as toggled, False
otherwise.