Dispatch¶
-
class
specviz.core.comms.Dispatch[source]¶ Bases:
objectCentral communications object for all events.
Methods Summary
register_event(name[, args])Add an EventNodeto the list of possible eventsregister_listener(name, func)Add a listener to an event unregister_listener(name, func)Remove a listener from an event Methods Documentation
-
register_event(name, args=None)[source]¶ Add an
EventNodeto the list of possible eventsParameters: - name (str) – The name of the event.
- args ([arg, ..]) – The list of keyword arguments this event will pass to its handlers.
-