EventNode¶
-
class
specviz.core.comms.EventNode(*args)[source]¶ Bases:
objectAn event
An event is defined by the arguments the listeners of the event expect to be given.
Parameters: args ([arg, ..]) – The list of keyword arguments that the event will provide to its listeners Methods Summary
clear()Removes all handlers from object. emit(\*args, \*\*kwargs)Call the hanlders of this event Methods Documentation
-
emit(*args, **kwargs)[source]¶ Call the hanlders of this event
Parameters: - args ([arg, ..]) – The keyword arguments being provided to the event.
- kwargs ({arg: value, ..}) – The keyword/value pairs passed to the listeners.
Raises: ValueError– An keyword is being passed that does not belong to this event.
-