 
       wx.lib.agw.shapedbutton.__SToggleMixin¶
  wx.lib.agw.shapedbutton.__SToggleMixin¶A mixin that allows to transform any of SButton, SBitmapButton and
SBitmapTextButton in the corresponding toggle buttons.
 Known Subclasses¶
 Known Subclasses¶wx.lib.agw.shapedbutton.SBitmapTextToggleButton, wx.lib.agw.shapedbutton.SBitmapToggleButton, wx.lib.agw.shapedbutton.SToggleButton
 Methods Summary¶
 Methods Summary¶| GetToggle | Returns the toggled state of a button. | 
| OnKeyDown | Handles the wx.EVT_KEY_DOWNevent for the button. | 
| OnKeyUp | Handles the wx.EVT_KEY_UPevent for the button. | 
| OnLeftDown | Handles the wx.EVT_LEFT_DOWNevent for the button. | 
| OnLeftUp | Handles the wx.EVT_LEFT_UPevent for the button. | 
| OnMotion | Handles the wx.EVT_MOTIONevent for the button. | 
| SetToggle | Sets the button as toggled/not toggled. | 
 Class API¶
 Class API¶A mixin that allows to transform any of SButton, SBitmapButton and
SBitmapTextButton in the corresponding toggle buttons.
Returns the toggled state of a button.
Handles the wx.EVT_KEY_DOWN event for the button.
| Parameters: | event – a KeyEventevent to be processed. | 
|---|
Handles the wx.EVT_KEY_UP event for the button.
| Parameters: | event – a KeyEventevent to be processed. | 
|---|
Handles the wx.EVT_LEFT_DOWN event for the button.
| Parameters: | event – a MouseEventevent to be processed. | 
|---|
Handles the wx.EVT_LEFT_UP event for the button.
| Parameters: | event – a MouseEventevent to be processed. | 
|---|
Handles the wx.EVT_MOTION event for the button.
| Parameters: | event – a MouseEventevent to be processed. | 
|---|
Sets the button as toggled/not toggled.
| Parameters: | flag – Trueto set the button as toggled,Falseotherwise. | 
|---|