wx.lib.buttons.__ToggleMixin¶A mixin that allows to transform GenButton in the corresponding
toggle button.
Known Subclasses¶wx.lib.buttons.GenBitmapTextToggleButton, wx.lib.buttons.GenBitmapToggleButton, wx.lib.buttons.GenToggleButton
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¶A mixin that allows to transform GenButton in the corresponding
toggle button.
Returns the toggled state of a button.
True is the button is toggled, False if it is not toggled.
Handles the wx.EVT_KEY_DOWN event for GenButton when used as toggle button.
event – a wx.KeyEvent event to be processed.
Handles the wx.EVT_KEY_UP event for GenButton when used as toggle button.
event – a wx.KeyEvent event to be processed.
Handles the wx.EVT_LEFT_DOWN event for GenButton when used as toggle button.
event – a wx.MouseEvent event to be processed.
Handles the wx.EVT_LEFT_UP event for GenButton when used as toggle button.
event – a wx.MouseEvent event to be processed.
Handles the wx.EVT_MOTION event for GenButton when used as toggle button.
event – a wx.MouseEvent event to be processed.
Sets the button as toggled/not toggled.
flag (bool) – True to set the button as toggled, False otherwise.