Provides global signal dispatching services.
Connect receiver to sender for signal. |
|
Disconnect receiver from sender for signal. |
|
Return a safe weak reference to a callable object. |
|
Send signal from sender to all connected receivers. |
BoundMethodWeakref class. |
|
Common base class for all non-exit exceptions. |
|
Used to represent default parameter values. |
connect
(receiver, signal=Any, sender=Any, weak=True)¶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=Any, sender=Any, weak=True)¶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=Anonymous, **kwds)¶Send signal from sender to all connected receivers.
Return a list of tuple pairs [(receiver, response), … ]. If sender is not specified, signal is sent anonymously.