diff options
Diffstat (limited to 'addons/timerevent.py')
-rw-r--r-- | addons/timerevent.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/timerevent.py b/addons/timerevent.py index 7b4292c..cb312c4 100644 --- a/addons/timerevent.py +++ b/addons/timerevent.py @@ -16,8 +16,8 @@ import gobject -from sugar.tutorius.filters import EventFilter -from sugar.tutorius.properties import TIntProperty +from .filters import EventFilter +from .properties import TIntProperty class TimerEvent(EventFilter): """ @@ -26,10 +26,11 @@ class TimerEvent(EventFilter): of time. It must be used inside a gobject main loop to work. """ timeout = TIntProperty(15, 0) + def __init__(self, timeout=None): """Constructor. - @param timeout_s timeout in seconds + @param timeout timeout in seconds """ super(TimerEvent,self).__init__() if timeout: @@ -65,9 +66,8 @@ class TimerEvent(EventFilter): __event__ = { "name" : "TimerEvent", - "display_name" : "Timer", - "icon" : "player_play", + "display_name" : "Timed transition", + "icon" : "clock", "class" : TimerEvent, "mandatory_props" : ["timeout"] } - |