vrml.dispatcher (version 1.5)
index
p:\vrml\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
vrml.weakkeydictfix
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.

Data and non-method functions defined here:
__doc__ = 'BoundMethodWeakref class.'
__module__ = 'vrml.dispatcher'
 
class DispatcherError(Exception)
       
   Methods defined here:
__init__(self, args=None)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'vrml.dispatcher'

Methods inherited from Exception:
__getitem__(...)
__str__(...)
 
class _Any
       
   Data and non-method functions defined here:
__doc__ = None
__module__ = 'vrml.dispatcher'
 
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=<vrml.dispatcher._Any instance at 0x056BCAA0>, sender=<vrml.dispatcher._Any instance at 0x056BCAA0>, 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=<vrml.dispatcher._Any instance at 0x056BCAA0>, sender=<vrml.dispatcher._Any instance at 0x056BCAA0>, 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 = <vrml.dispatcher._Any instance at 0x056BCAA0>
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = '$Id: dispatcher.py,v 1.5 2003/05/25 01:18:30 mcfletch Exp $'
_boundMethods = <WeakKeyDictionary at 90950048>
connections = {}
senders = {}
sendersBack = {}
 
Author
             Patrick K. O'Brien <pobrien@orbtech.com>