Issue #10365: File open dialog now works instead of crashing

even when parent window is closed. Patch by Roger Serwy.
This commit is contained in:
Terry Jan Reedy 2012-05-26 20:33:32 -04:00
parent 42f7b7ecb2
commit eaa7e7825e
3 changed files with 17 additions and 6 deletions

View file

@ -1458,7 +1458,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__":