diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-02-14 19:44:14 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-02-14 19:44:14 +0000 |
| commit | 6f73e6abddf4170357c490966d0e1c622eb376f5 (patch) | |
| tree | 8719ae10ac8803643f273399939d46a9f6fdc19d /lib/python/Components/Sources | |
| parent | 84781c10a768b91a02151b202c76b52b1c5789c2 (diff) | |
| download | enigma2-6f73e6abddf4170357c490966d0e1c622eb376f5.tar.gz enigma2-6f73e6abddf4170357c490966d0e1c622eb376f5.zip | |
add support for cyclic garbage collection to eTimer and eSocketNotifier
class, add simpler method to set a timer callback.. or remove.. instead of
timer.timeout.get().append(func).. or .remove(func)... now it is possible to
do timer.callback.append(func)... timer.callback.remove(func) (the old
method still works..but is now deprecated)
Diffstat (limited to 'lib/python/Components/Sources')
| -rw-r--r-- | lib/python/Components/Sources/Boolean.py | 2 | ||||
| -rw-r--r-- | lib/python/Components/Sources/Clock.py | 2 | ||||
| -rw-r--r-- | lib/python/Components/Sources/FrontendStatus.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Components/Sources/Boolean.py b/lib/python/Components/Sources/Boolean.py index 21c2c2b9..97b92bc6 100644 --- a/lib/python/Components/Sources/Boolean.py +++ b/lib/python/Components/Sources/Boolean.py @@ -16,7 +16,7 @@ class Boolean(Source, object): self.fixed = fixed if poll > 0: self.poll_timer = eTimer() - self.poll_timer.timeout.get().append(self.poll) + self.poll_timer.callback.append(self.poll) self.poll_timer.start(poll) else: self.poll_timer = None diff --git a/lib/python/Components/Sources/Clock.py b/lib/python/Components/Sources/Clock.py index b59a20d5..60fa7ac2 100644 --- a/lib/python/Components/Sources/Clock.py +++ b/lib/python/Components/Sources/Clock.py @@ -8,7 +8,7 @@ class Clock(Source): def __init__(self): Source.__init__(self) self.clock_timer = eTimer() - self.clock_timer.timeout.get().append(self.poll) + self.clock_timer.callback.append(self.poll) self.clock_timer.start(1000) @cached diff --git a/lib/python/Components/Sources/FrontendStatus.py b/lib/python/Components/Sources/FrontendStatus.py index 4d38f754..141bd8a4 100644 --- a/lib/python/Components/Sources/FrontendStatus.py +++ b/lib/python/Components/Sources/FrontendStatus.py @@ -9,7 +9,7 @@ class FrontendStatus(Source): self.frontend_source = frontend_source self.invalidate() self.poll_timer = eTimer() - self.poll_timer.timeout.get().append(self.updateFrontendStatus) + self.poll_timer.callback.append(self.updateFrontendStatus) self.poll_timer.start(update_interval) def invalidate(self): |
