From cd6b8c67ceb4230198de9cdc971b27848c5391f0 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 26 May 2012 20:23:45 -0400 Subject: Issue #10365: File open dialog now works instead of crashing even when parent window is closed. Patch by Roger Serwy. --- Lib/idlelib/PyShell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/idlelib/PyShell.py') diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 74a37db862..edb4f37669 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__": -- cgit v1.2.1