diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2012-05-27 00:23:45 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2012-05-27 00:23:45 (GMT) |
commit | cd6b8c67ceb4230198de9cdc971b27848c5391f0 (patch) | |
tree | 5b351486ca2641e5cf46f59eff73a6b8707a0374 /Lib/idlelib/PyShell.py | |
parent | 809309a4822124f46dc98514ccdf818564215f30 (diff) | |
download | cpython-cd6b8c67ceb4230198de9cdc971b27848c5391f0.zip cpython-cd6b8c67ceb4230198de9cdc971b27848c5391f0.tar.gz cpython-cd6b8c67ceb4230198de9cdc971b27848c5391f0.tar.bz2 |
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 74a37db..edb4f37 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -1435,7 +1435,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__": |