Table Of Contents

Previous topic

aquabutton

Next topic

AquaButton

This Page

phoenix_title __ToggleMixin

A mixin that allows to transform AquaButton in the corresponding toggle button.


class_hierarchy Inheritance Diagram

Inheritance diagram for class __ToggleMixin

Inheritance diagram of __ToggleMixin


method_summary Methods Summary

GetToggle Returns the toggled state of a button.
OnKeyDown Handles the EVT_KEY_DOWN event for AquaButton when used as toggle button.
OnKeyUp Handles the EVT_KEY_UP event for AquaButton when used as toggle button.
OnLeftDown Handles the EVT_LEFT_DOWN event for AquaButton when used as toggle button.
OnLeftUp Handles the EVT_LEFT_UP event for AquaButton when used as toggle button.
OnMotion Handles the EVT_MOTION event for AquaButton when used as toggle button.
OnPaint Handles the EVT_PAINT event for AquaButton when used as toggle button.
SetToggle Sets the button as toggled/not toggled.

api Class API



class __ToggleMixin(object)

A mixin that allows to transform AquaButton in the corresponding toggle button.


Methods



GetToggle(self)

Returns the toggled state of a button.

Returns:True is the button is toggled, False if it is not toggled.


OnKeyDown(self, event)

Handles the EVT_KEY_DOWN event for AquaButton when used as toggle button.

Parameters:event – a KeyEvent event to be processed.


OnKeyUp(self, event)

Handles the EVT_KEY_UP event for AquaButton when used as toggle button.

Parameters:event – a KeyEvent event to be processed.


OnLeftDown(self, event)

Handles the EVT_LEFT_DOWN event for AquaButton when used as toggle button.

Parameters:event – a MouseEvent event to be processed.


OnLeftUp(self, event)

Handles the EVT_LEFT_UP event for AquaButton when used as toggle button.

Parameters:event – a MouseEvent event to be processed.


OnMotion(self, event)

Handles the EVT_MOTION event for AquaButton when used as toggle button.

Parameters:event – a MouseEvent event to be processed.


OnPaint(self, event)

Handles the EVT_PAINT event for AquaButton when used as toggle button.

Parameters:event – a PaintEvent event to be processed.


SetToggle(self, flag)

Sets the button as toggled/not toggled.

Parameters:flag (bool) – True to set the button as toggled, False otherwise.