]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Adapted to modern times and fixed a bug (id --> my_id)
authorGuido van Rossum <guido@python.org>
Mon, 14 Dec 1992 14:10:36 +0000 (14:10 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 14 Dec 1992 14:10:36 +0000 (14:10 +0000)
Demo/stdwin/TestSched.py

index 7760cc008be142a94aeed876ffc5a7f8ae2e91ec..f6bbe23688a98723c5e00d985d7764316716c5b7 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/local/python
+#! /usr/local/bin/python
 
 # TestSched
 
@@ -8,7 +8,7 @@ import WindowSched
 from Buttons import PushButton
 
 def my_ringer(child):
-       child.id = None
+       child.my_id = None
        stdwin.fleep()
 
 def my_hook(child):
@@ -16,7 +16,7 @@ def my_hook(child):
        if child.my_id:
                WindowSched.cancel(child.my_id)
        child.my_id = \
-               WindowSched.enter(child.my_number*1000, 0, my_ringer, child)
+               WindowSched.enter(child.my_number*1000, 0, my_ringer, (child,))
 
 def main(n):
        from CSplit import CSplit