wxoo.dispatcher (version 1.1)
index
p:\wxproperties\wxoo\dispatcher.py

Provides global signal dispatching services.
 
Slightly modified version for vrml and OpenGLContext
packages.  Modifications eliminate the cast to string
for the signal objects, which allows for non-string
signal values.

 
Modules
       
exceptions
types
weakref

 
Classes
       
BoundMethodWeakref
Exception
DispatcherError
_Any

 
class BoundMethodWeakref
    BoundMethodWeakref class.
 
  Methods defined here:
__call__(self)
Return a strong reference to the bound method.
__init__(self, boundMethod)
Return a weak-reference-like instance for a bound method.
__repr__(self)
Return the closest representation.

 
class DispatcherError(Exception)
     Methods defined here:
__init__(self, args=None)

Methods inherited from Exception:
__getitem__(...)
__str__(...)

 
class _Any
    

 
Functions
       
_call(receiver, **kwds)
Call receiver with only arguments it can accept.
_cleanupConnections(senderkey, signal)
Delete any empty signals for senderkey. Delete senderkey if empty.
_removeReceiver(receiver)
Remove receiver from connections.
_removeSender(senderkey)
Remove senderkey from connections.
connect(receiver, signal=<wxoo.dispatcher._Any instance at 0x015E53A0>, sender=<wxoo.dispatcher._Any instance at 0x015E53A0>, weak=1)
Connect receiver to sender for signal.
 
If sender is Any, receiver will receive signal from any sender.
If signal is Any, receiver will receive any signal from sender.
If sender is None, receiver will receive signal from anonymous.
If signal is Any and sender is None, receiver will receive any 
        signal from anonymous.
If signal is Any and sender is Any, receiver will receive any 
        signal from any sender.
If weak is true, weak references will be used.
disconnect(receiver, signal=<wxoo.dispatcher._Any instance at 0x015E53A0>, sender=<wxoo.dispatcher._Any instance at 0x015E53A0>, weak=1)
Disconnect receiver from sender for signal.
 
Disconnecting is not required. The use of disconnect is the same as for
connect, only in reverse. Think of it as undoing a previous connection.
safeRef(object)
Return a *safe* weak reference to a callable object.
send(signal, sender=None, **kwds)
Send signal from sender to all connected receivers.
 
Return a list of tuple pairs [(receiver, response), ... ].
If sender is None, signal is sent anonymously.

 
Data
        Any = <wxoo.dispatcher._Any instance at 0x015E53A0>
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = '$Id: dispatcher.py,v 1.1 2003/01/24 18:55:51 mcfletch Exp $'
_boundMethods = <WeakKeyDictionary at 22959048>
connections = {}
senders = {}

 
Author
        Patrick K. O'Brien <pobrien@orbtech.com>