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

Class ButtonMatrixElement

source code

                             object --+                
                                      |                
          Disconnectable.Disconnectable --+            
                                          |            
                        SubjectSlot.Subject --+        
                                              |        
                             object --+       |        
                                      |       |        
          Disconnectable.Disconnectable --+   |        
                                          |   |        
              ControlElement.ControlElement --+        
                                              |        
NotifyingControlElement.NotifyingControlElement --+    
                                                  |    
                             object --+           |    
                                      |           |    
          Disconnectable.Disconnectable --+       |    
                                          |       |    
      Disconnectable.CompoundDisconnectable --+   |    
                                              |   |    
                        SubjectSlot.SlotManager --+    
                                                  |    
                    CompoundElement.CompoundElement --+
                                                      |
                                                     ButtonMatrixElement

Class representing a 2-dimensional set of buttons.

When using as a resource, buttons might be individually grabbed at any time by other components. The matrix will automatically block messages coming from or sent to a button owned by them, and will return None when you try to query it.

Nested Classes [hide private]

Inherited from SubjectSlot.Subject: __metaclass__

Inherited from ControlElement.ControlElement (private): _resource_type

Instance Methods [hide private]
 
__init__(self, *a, **k)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
add_row(self, buttons) source code
 
width(self) source code
 
height(self) source code
 
send_value(self, column, row, value, force=False) source code
 
set_light(self, column, row, value) source code
 
get_button(self, column, row) source code
 
reset(self) source code
 
__iter__(self) source code
 
__getitem__(self, index) source code
 
_do_get_item(self, index) source code
 
__len__(self) source code
 
iterbuttons(self) source code
 
on_nested_control_element_value(self, value, sender)
Notifies that an owned control element has received a value.
source code
 
on_nested_control_element_grabbed(self, control)
Notifies that the nested control can be used by the compound
source code
 
on_nested_control_element_released(self, control)
Notifies that we lost control over the control.
source code

Inherited from CompoundElement.CompoundElement: add_value_listener, has_control_element, owns_control_element, register_control_element, register_control_elements, remove_value_listener, request_listen_nested_control_elements, set_control_element, unregister_control_element, unregister_control_elements, unrequest_listen_nested_control_elements

Inherited from ControlElement.ControlElement: clear_send_cache, disconnect, send_midi

Inherited from ControlElement.ControlElement (private): _resource, _tasks

Inherited from SubjectSlot.SlotManager: register_slot, register_slot_manager

Inherited from Disconnectable.CompoundDisconnectable: disconnect_disconnectable, find_disconnectable, has_disconnectable, register_disconnectable, unregister_disconnectable

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

Class Variables [hide private]

Inherited from NotifyingControlElement.NotifyingControlElement: __subject_events__

Inherited from ControlElement.ControlElement: canonical_parent, name, optimized_send_midi

Properties [hide private]

Inherited from ControlElement.ControlElement: resource

Inherited from object: __class__

Method Details [hide private]

__init__(self, *a, **k)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

reset(self)

source code 
Overrides: ControlElement.ControlElement.reset

on_nested_control_element_value(self, value, sender)

source code 

Notifies that an owned control element has received a value.

Overrides: CompoundElement.CompoundElement.on_nested_control_element_value
(inherited documentation)

on_nested_control_element_grabbed(self, control)

source code 

Notifies that the nested control can be used by the compound

Overrides: CompoundElement.CompoundElement.on_nested_control_element_grabbed
(inherited documentation)

on_nested_control_element_released(self, control)

source code 

Notifies that we lost control over the control.

Overrides: CompoundElement.CompoundElement.on_nested_control_element_released
(inherited documentation)