Added docstring to EventGenerator class
This commit is contained in:
parent
a9fb6a38dd
commit
2af47372b0
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,12 @@ import threading
|
||||||
|
|
||||||
|
|
||||||
class EventGenerator(object):
|
class EventGenerator(object):
|
||||||
|
"""
|
||||||
|
Abstract class for event generators. It allows to fire events to the bus and
|
||||||
|
trigger/register/unregister custom callback handlers associated to event
|
||||||
|
types. Both plugins and backends extend this class.
|
||||||
|
"""
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
self._event_handlers = {} # Event type => callback map
|
self._event_handlers = {} # Event type => callback map
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue