A mixin that allows to transform any of SButton, SBitmapButton and SBitmapTextButton in the corresponding toggle buttons.
lib.agw.shapedbutton.SBitmapTextToggleButton, lib.agw.shapedbutton.SBitmapToggleButton, lib.agw.shapedbutton.SToggleButton
GetToggle | Returns the toggled state of a button. |
OnKeyDown | Handles the EVT_KEY_DOWN event for the button. |
OnKeyUp | Handles the EVT_KEY_UP event for the button. |
OnLeftDown | Handles the EVT_LEFT_DOWN event for the button. |
OnLeftUp | Handles the EVT_LEFT_UP event for the button. |
OnMotion | Handles the EVT_MOTION event for the button. |
SetToggle | Sets the button as toggled/not toggled. |
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 EVT_KEY_DOWN event for the button.
Parameters: | event – a KeyEvent event to be processed. |
---|
Handles the EVT_KEY_UP event for the button.
Parameters: | event – a KeyEvent event to be processed. |
---|
Handles the EVT_LEFT_DOWN event for the button.
Parameters: | event – a MouseEvent event to be processed. |
---|
Handles the EVT_LEFT_UP event for the button.
Parameters: | event – a MouseEvent event to be processed. |
---|
Handles the EVT_MOTION event for the button.
Parameters: | event – a MouseEvent event to be processed. |
---|
Sets the button as toggled/not toggled.
Parameters: | flag – True to set the button as toggled, False otherwise. |
---|