mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Adapted to modern times and fixed a bug (id --> my_id)
This commit is contained in:
parent
8dd054d918
commit
0e71dc1106
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/local/python
|
#! /usr/local/bin/python
|
||||||
|
|
||||||
# TestSched
|
# TestSched
|
||||||
|
|
||||||
|
|
@ -8,7 +8,7 @@ import WindowSched
|
||||||
from Buttons import PushButton
|
from Buttons import PushButton
|
||||||
|
|
||||||
def my_ringer(child):
|
def my_ringer(child):
|
||||||
child.id = None
|
child.my_id = None
|
||||||
stdwin.fleep()
|
stdwin.fleep()
|
||||||
|
|
||||||
def my_hook(child):
|
def my_hook(child):
|
||||||
|
|
@ -16,7 +16,7 @@ def my_hook(child):
|
||||||
if child.my_id:
|
if child.my_id:
|
||||||
WindowSched.cancel(child.my_id)
|
WindowSched.cancel(child.my_id)
|
||||||
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):
|
def main(n):
|
||||||
from CSplit import CSplit
|
from CSplit import CSplit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue