Developer Interface

Signal

class signaling.Signal(args=None, name=None)
connect(slot)

Connect slot to this singal.

Parameters:slot (callable) – Callable object wich accepts keyword arguments.
Raises:InvalidSlot – If slot doesn’t accept keyword arguments.
disconnect(slot)

Disconnect slot from this signal.

emit(**kwargs)

Emit signal by calling all connected slots.

The arguments supplied have to match the signal definition.

Parameters:kwargs – Keyword arguments to be passed to connected slots.
Raises:InvalidEmit – If arguments don’t match signal specification.
is_connected(slot)

Check if a slot is conncted to this signal.

Exceptions

exception signaling.exceptions.InvalidSlot

Indicates that the slot implementation is invalid.

exception signaling.exceptions.InvalidEmit

Indicates that the emit method was called with invalid arguments.