diff options
Diffstat (limited to 'lib/python/Components/Sources/Clock.py')
| -rw-r--r-- | lib/python/Components/Sources/Clock.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Components/Sources/Clock.py b/lib/python/Components/Sources/Clock.py index 608a7190..e2d7faa7 100644 --- a/lib/python/Components/Sources/Clock.py +++ b/lib/python/Components/Sources/Clock.py @@ -8,10 +8,13 @@ class Clock(Source): def __init__(self): Source.__init__(self) self.clock_timer = eTimer() - self.clock_timer.timeout.get().append(self.changed) + self.clock_timer.timeout.get().append(self.poll) self.clock_timer.start(1000) def getClock(self): return time.time() time = property(getClock) + + def poll(self): + self.changed((self.CHANGED_POLL,)) |
