Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 77175:4334964993b9 2.7
Issue #10365: File open dialog now works instead of crashing
even when parent window is closed. Patch by Roger Serwy.
| author | Terry Jan Reedy <tjreedy@udel.edu> |
|---|---|
| date | Sat, 26 May 2012 20:33:32 -0400 |
| parents | a9be863e5734 |
| children | 1a4e99460438 |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Sat May 26 16:55:43 2012 -0400 +++ b/Lib/idlelib/PyShell.py Sat May 26 20:33:32 2012 -0400 @@ -1458,7 +1458,8 @@ 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__":
