Inheritance |
|
An instance of this object is returned when you add a custom event handler using pdg.Node.addEventHandler() or pdg.GraphContext.addEventHandler(). If you want to remove the handler later, you can this object to pdg.Node.removeEventHandler() or pdg.GraphContext.removeEventHandler(). Alternatively, you can remove the handler from any event emitter its attached to by calling pdg.EventHandler.removeAllEventEmitters.
Methods ¶
callback
: object
Property
The function/callable object associated with the Python event handler. This is the function that gets invoked when an event occurs.
Methods from pdg.EventHandler ¶
removeFromAllEmitters()
Removes the event handle from all event sources that it is currently handling events from.
emitters
: list
of pdg.EventEmitter
Property
The list of event emitters this handler receives events. The emitters can be instances of the pdg.Node, pdg.GraphContext, pdg.WorkItem or pdg.Scheduler class.
language
: pdg.language
Property
The language used to define the event handler’s callback function, i.e. C++ or Python.