Table Of Contents

Previous topic

CrustSlicesFrame

Next topic

BoundMethodWeakref

This Page

phoenix_title dispatcher

Provides global signal dispatching services.


class_hierarchy Inheritance Diagram

Inheritance diagram for module dispatcher

Inheritance diagram of dispatcher


function_summary Functions Summary

connect Connect receiver to sender for signal.
disconnect Disconnect receiver from sender for signal.
safeRef Return a safe weak reference to a callable object.
send Send signal from sender to all connected receivers.

class_summary Classes Summary

BoundMethodWeakref BoundMethodWeakref class.
DispatcherError  
Parameter Used to represent default parameter values.

Functions



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.