aboutsummaryrefslogtreecommitdiff
path: root/mytest.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-02-14 19:44:14 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-02-14 19:44:14 +0000
commit6f73e6abddf4170357c490966d0e1c622eb376f5 (patch)
tree8719ae10ac8803643f273399939d46a9f6fdc19d /mytest.py
parent84781c10a768b91a02151b202c76b52b1c5789c2 (diff)
downloadenigma2-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 'mytest.py')
-rw-r--r--mytest.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/mytest.py b/mytest.py
index fd72529b..7e7c662d 100644
--- a/mytest.py
+++ b/mytest.py
@@ -1,3 +1,8 @@
+import eBaseImpl
+import enigma
+enigma.eTimer = eBaseImpl.eTimer
+enigma.eSocketNotifier = eBaseImpl.eSocketNotifier
+
from Tools.Profile import profile, profile_final
profile("PYTHON_START")
@@ -141,7 +146,7 @@ class Session:
self.summary_desktop = summary_desktop
self.nav = navigation
self.delay_timer = eTimer()
- self.delay_timer.timeout.get().append(self.processDelay)
+ self.delay_timer.callback.append(self.processDelay)
self.current_dialog = None
@@ -350,7 +355,7 @@ class VolumeControl:
self.muteDialog = session.instantiateDialog(Mute)
self.hideVolTimer = eTimer()
- self.hideVolTimer.timeout.get().append(self.volHide)
+ self.hideVolTimer.callback.append(self.volHide)
vol = config.audio.volume.value
self.volumeDialog.setValue(vol)