summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-02-14 19:44:14 (GMT)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-02-14 19:44:14 (GMT)
commit6f73e6abddf4170357c490966d0e1c622eb376f5 (patch)
tree8719ae10ac8803643f273399939d46a9f6fdc19d /tests
parent84781c10a768b91a02151b202c76b52b1c5789c2 (diff)
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 'tests')
-rw-r--r--tests/enigma.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/enigma.py b/tests/enigma.py
index bf23262..2bf2a59 100644
--- a/tests/enigma.py
+++ b/tests/enigma.py
@@ -75,7 +75,7 @@ def stop():
def run(duration = 1000):
stoptimer = eTimer()
stoptimer.start(duration * 1000.0)
- stoptimer.timeout.get().append(stop)
+ stoptimer.callback.append(stop)
while not stopped:
runIteration()