dispatch.examples.simple_sample
index
p:\dispatch\examples\simple_sample.py

Simple sample showing basic usage pattern

 
Modules
       
dispatch.dispatcher

 
Classes
       
object
Node

 
class Node(object)
    Sample object to send signals, note lack of dispatcher-aware code
 
  Methods defined here:
__init__(self, name='an object')
__repr__(self)

Data and other attributes defined here:
__dict__ = <dictproxy object at 0x008DD110>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Node' objects>
list of weak references to the object (if defined)

 
Functions
       
doDefault()
Sample method to receive All signals
 
Note that this function will be registered for all
signals from a given object.  It does not have the
same interface as any of the other functions
registered for those signals.  The system will
automatically determine the appropriate calling
signature for the function.
doSomethingElse(signal, **named)
Sample method to receive signals
 
This method demonstrates the use of the **named
parameter, which allows a method to receive all
remaining parameters from the send call.
doSomethingUseful(table, signal, sender)
Sample method to receive signals

 
Data
        DO_LOTS = 0
DO_SOMETHING = ('THIS', 'IS', 'A', 'MORE', 'COMPLEX', 'SIGNAL')
DO_SOMETHING_ELSE = Node( 'an object' )
__file__ = r'p:\dispatch\examples\simple_sample.pyc'
__name__ = 'dispatch.examples.simple_sample'
ourObjects = [Node( 'an object' ), Node( 'an object' ), Node( 'an object' )]