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

Class LatchingBehaviour

source code

         object --+    
                  |    
ModeButtonBehaviour --+
                      |
                     LatchingBehaviour

Behaviour that will jump back to the previous mode when the button is released after having been hold for some time. If the button is quickly pressed, the selected mode will stay.

Instance Methods [hide private]
 
press_immediate(self, component, mode) source code
 
release_immediate(self, component, mode) source code
 
release_delayed(self, component, mode) source code

Inherited from ModeButtonBehaviour: press_delayed, update_button

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

press_immediate(self, component, mode)

source code 
Overrides: ModeButtonBehaviour.press_immediate

release_immediate(self, component, mode)

source code 
Overrides: ModeButtonBehaviour.release_immediate

release_delayed(self, component, mode)

source code 
Overrides: ModeButtonBehaviour.release_delayed