summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-12-14 14:10:36 (GMT)
committerGuido van Rossum <guido@python.org>1992-12-14 14:10:36 (GMT)
commit0e71dc1106575f26cb55e55daec7c96955fffafa (patch)
treed77471e47cbc95f0837d8389107b9bffbf373014
parent8dd054d9183c529f530623364cdcf5c37ab2ada7 (diff)
downloadcpython-0e71dc1106575f26cb55e55daec7c96955fffafa.zip
cpython-0e71dc1106575f26cb55e55daec7c96955fffafa.tar.gz
cpython-0e71dc1106575f26cb55e55daec7c96955fffafa.tar.bz2
Adapted to modern times and fixed a bug (id --> my_id)
-rwxr-xr-xDemo/stdwin/TestSched.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/stdwin/TestSched.py b/Demo/stdwin/TestSched.py
index 7760cc0..f6bbe23 100755
--- a/Demo/stdwin/TestSched.py
+++ b/Demo/stdwin/TestSched.py
@@ -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