diff options
Diffstat (limited to 'lib/python/Components/Sources/Clock.py')
| -rw-r--r-- | lib/python/Components/Sources/Clock.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/python/Components/Sources/Clock.py b/lib/python/Components/Sources/Clock.py index e2d7faa7..7f1a8d7f 100644 --- a/lib/python/Components/Sources/Clock.py +++ b/lib/python/Components/Sources/Clock.py @@ -18,3 +18,11 @@ class Clock(Source): def poll(self): self.changed((self.CHANGED_POLL,)) + + def doSuspend(self, suspended): + if suspended: + self.clock_timer.stop() + else: + self.clock_timer.start(1000) + self.poll() + |
