diff --git a/Demo/stdwin/TestSched.py b/Demo/stdwin/TestSched.py index 7760cc008be..f6bbe23688a 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 @@ 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