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 non-method functions defined here:
__dict__ = <dict-proxy object at 0x008960C0>
__doc__ = 'Sample object to send signals, note lack of dispatcher-aware code'
__module__ = 'dispatch.examples.simple_sample'
__weakref__ = <member '__weakref__' of 'Node' objects>

Methods inherited from object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__reduce__(...)
helper for pickle
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from object:
__class__ = <type 'type'>
__new__ = <built-in method __new__ of type object at 0x1E0BD978>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
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' )]