Bases: object
Base class for all signals
Connect receiver to sender for signal
receive signals. Receivers must be hashable objects.
if weak is True, then receiver must be weak-referencable (more precisely saferef.safeRef() must be able to create a reference to the receiver).
Receivers must be able to accept keyword arguments.
returns None
Disconnect receiver from sender for signal
sender – the registered sender to disconnect weak – the weakref state to disconnect dispatch_uid – the unique identifier of the receiver to disconnect
disconnect reverses the process of connect.
returns None
Send signal from sender to all connected receivers.
named – named arguments which will be passed to receivers.
Returns a list of tuple pairs [(receiver, response), ... ].
If any receiver raises an error, the error propagates back through send, terminating the dispatch loop, so it is quite possible to not have all receivers called if a raises an error.
Send signal from sender to all connected receivers catching errors
Return a list of tuple pairs [(receiver, response), ... ], may raise DispatcherKeyError
if any receiver raises an error (specifically any subclass of Exception), the error instance is returned as the result for that receiver.