sardanaevent
This module is part of the Python Pool libray. It defines the base classes for pool event mechanism
Classes
EventGenerator
- class EventGenerator(max_queue_len=10, listeners=None)[source]
A class capable of generating events to their listeners
- add_listener(listener)[source]
Adds a new listener for this object.
- Parameters:
listener – a listener
- remove_listener(listener)[source]
Removes an existing listener for this object.
- Parameters:
listener – the listener to be removed
- Returns:
True is succeeded or False otherwise