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

Class AlternativeBehaviour

source code

         object --+        
                  |        
ModeButtonBehaviour --+    
                      |    
   CancellableBehaviour --+
                          |
                         AlternativeBehaviour

Relies in the alternative to be in the same group for cancellation to work properly. Also shows cancellable behaviour and the alternative is latched.

Instance Methods [hide private]
 
__init__(self, alternative_mode=None, *a, **k)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_check_mode_groups(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
 
press_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, alternative_mode=None, *a, **k)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

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

press_immediate(self, component, mode)

source code 
Overrides: ModeButtonBehaviour.press_immediate