diff options
author | Guido van Rossum <guido@python.org> | 1991-11-19 20:41:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-11-19 20:41:07 (GMT) |
commit | 3f4f91704c88c48448a5593a675cd885ebf717d1 (patch) | |
tree | 2f4fce5649d5b3c458cba3f157b06f12dd6f21b3 /Lib/lib-stdwin/mainloop.py | |
parent | c6913e7da286f5a307661399e4c3306a5cce2c29 (diff) | |
download | cpython-3f4f91704c88c48448a5593a675cd885ebf717d1.zip cpython-3f4f91704c88c48448a5593a675cd885ebf717d1.tar.gz cpython-3f4f91704c88c48448a5593a675cd885ebf717d1.tar.bz2 |
Comment 0.9.1 alternative to windows.remove(win) out.
Diffstat (limited to 'Lib/lib-stdwin/mainloop.py')
-rw-r--r-- | Lib/lib-stdwin/mainloop.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/lib-stdwin/mainloop.py b/Lib/lib-stdwin/mainloop.py index 9142d02..0cf5bde 100644 --- a/Lib/lib-stdwin/mainloop.py +++ b/Lib/lib-stdwin/mainloop.py @@ -30,10 +30,11 @@ def register(win): def unregister(win): if win in windows: windows.remove(win) # Not in 0.9.1 - for i in range(len(windows)): - if windows[i] = win: - del windows[i] - break + # 0.9.1 solution: + #for i in range(len(windows)): + # if windows[i] = win: + # del windows[i] + # break # Interfaces used by WindowSched. |