 
       wx.lib.buttons.__ToggleMixin¶
  wx.lib.buttons.__ToggleMixin¶A mixin that allows to transform GenButton in the corresponding
toggle button.
 Known Subclasses¶
 Known Subclasses¶wx.lib.buttons.GenBitmapTextToggleButton, wx.lib.buttons.GenBitmapToggleButton, wx.lib.buttons.GenToggleButton
 Methods Summary¶
 Methods Summary¶| GetToggle | Returns the toggled state of a button. | 
| OnKeyDown | Handles the wx.EVT_KEY_DOWNevent forGenButtonwhen used as toggle button. | 
| OnKeyUp | Handles the wx.EVT_KEY_UPevent forGenButtonwhen used as toggle button. | 
| OnLeftDown | Handles the wx.EVT_LEFT_DOWNevent forGenButtonwhen used as toggle button. | 
| OnLeftUp | Handles the wx.EVT_LEFT_UPevent forGenButtonwhen used as toggle button. | 
| OnMotion | Handles the wx.EVT_MOTIONevent forGenButtonwhen used as toggle button. | 
| SetToggle | Sets the button as toggled/not toggled. | 
 Class API¶
 Class API¶A mixin that allows to transform GenButton in the corresponding
toggle button.
Returns the toggled state of a button.
| Returns: | Trueis the button is toggled,Falseif it is not toggled. | 
|---|
Handles the wx.EVT_KEY_DOWN event for GenButton when used as toggle button.
| Parameters: | event – a wx.KeyEventevent to be processed. | 
|---|
Handles the wx.EVT_KEY_UP event for GenButton when used as toggle button.
| Parameters: | event – a wx.KeyEventevent to be processed. | 
|---|
Handles the wx.EVT_LEFT_DOWN event for GenButton when used as toggle button.
| Parameters: | event – a wx.MouseEventevent to be processed. | 
|---|
Handles the wx.EVT_LEFT_UP event for GenButton when used as toggle button.
| Parameters: | event – a wx.MouseEventevent to be processed. | 
|---|
Handles the wx.EVT_MOTION event for GenButton when used as toggle button.
| Parameters: | event – a wx.MouseEventevent to be processed. | 
|---|
Sets the button as toggled/not toggled.
| Parameters: | flag (bool) – Trueto set the button as toggled,Falseotherwise. | 
|---|