summaryrefslogtreecommitdiffstats
path: root/Lib/stdwin/mainloop.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/stdwin/mainloop.py')
-rwxr-xr-xLib/stdwin/mainloop.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/stdwin/mainloop.py b/Lib/stdwin/mainloop.py
index 9142d02..0cf5bde 100755
--- a/Lib/stdwin/mainloop.py
+++ b/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.