diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2012-05-27 00:29:25 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2012-05-27 00:29:25 (GMT) |
commit | 935d5eb43fa877aa9a418ef8369f95f250fb0dc1 (patch) | |
tree | f5cf3d29387be27c765cff55b6a90ae793171d12 /Lib/idlelib/PyShell.py | |
parent | 26cdf1fe5b4c42336a244ad8921bc660ff6819b4 (diff) | |
parent | cd6b8c67ceb4230198de9cdc971b27848c5391f0 (diff) | |
download | cpython-935d5eb43fa877aa9a418ef8369f95f250fb0dc1.zip cpython-935d5eb43fa877aa9a418ef8369f95f250fb0dc1.tar.gz cpython-935d5eb43fa877aa9a418ef8369f95f250fb0dc1.tar.bz2 |
Merge with 3.2
Issue #10365: File open dialog now works instead of crashing
even when parent window is closed. Patch by Roger Serwy.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r-- | Lib/idlelib/PyShell.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index c524d61..0eefc93 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -1451,7 +1451,8 @@ def main(): if tkversionwarning: shell.interp.runcommand(''.join(("print('", tkversionwarning, "')"))) - root.mainloop() + while flist.inversedict: # keep IDLE running while files are open. + root.mainloop() root.destroy() if __name__ == "__main__": |