Package _Framework :: Module ModesComponent :: Class DynamicBehaviourMixin
[hide private]
[frames] | no frames]

Class DynamicBehaviourMixin

source code

         object --+    
                  |    
ModeButtonBehaviour --+
                      |
                     DynamicBehaviourMixin

Chooses the mode to uses dynamically when the button is pressed. If no mode is returned, the default one is used instead.

It can be safely used as a mixin in front of every other behviour.

Instance Methods [hide private]
 
__init__(self, mode_chooser=None, *a, **k)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
press_immediate(self, component, mode) source code
 
release_delayed(self, component, mode) source code
 
press_delayed(self, component, mode) source code
 
release_immediate(self, component, mode) source code

Inherited from ModeButtonBehaviour: update_button

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, mode_chooser=None, *a, **k)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

press_immediate(self, component, mode)

source code 
Overrides: ModeButtonBehaviour.press_immediate

release_delayed(self, component, mode)

source code 
Overrides: ModeButtonBehaviour.release_delayed

press_delayed(self, component, mode)

source code 
Overrides: ModeButtonBehaviour.press_delayed

release_immediate(self, component, mode)

source code 
Overrides: ModeButtonBehaviour.release_immediate