Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/addons/timerevent.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/timerevent.py')
-rw-r--r--addons/timerevent.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/addons/timerevent.py b/addons/timerevent.py
index a986fa0..9896075 100644
--- a/addons/timerevent.py
+++ b/addons/timerevent.py
@@ -27,14 +27,12 @@ class TimerEvent(EventFilter):
"""
timeout = TIntProperty(15, 0)
- def __init__(self, timeout=None):
+ def __init__(self, **kwargs):
"""Constructor.
-
+ Accepted keyword args:
@param timeout timeout in seconds
"""
- super(TimerEvent,self).__init__()
- if timeout:
- self.timeout = timeout
+ super(TimerEvent,self).__init__(**kwargs)
self._handler_id = None
def install_handlers(self, callback, **kwargs):