Mercurial > cpython-lru_cache-weakref
comparison Lib/idlelib/PyShell.py @ 77173:a2877fbabf95 3.2
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:23:45 -0400 |
| parents | a95b19b3b4cd |
| children | 9d0c3a835bfe 21862628a013 |
comparison
equal
deleted
inserted
replaced
| 77169:e443cce4f183 | 77173:a2877fbabf95 |
|---|---|
| 1433 # a separate window. | 1433 # a separate window. |
| 1434 tkversionwarning = macosxSupport.tkVersionWarning(root) | 1434 tkversionwarning = macosxSupport.tkVersionWarning(root) |
| 1435 if tkversionwarning: | 1435 if tkversionwarning: |
| 1436 shell.interp.runcommand(''.join(("print('", tkversionwarning, "')"))) | 1436 shell.interp.runcommand(''.join(("print('", tkversionwarning, "')"))) |
| 1437 | 1437 |
| 1438 root.mainloop() | 1438 while flist.inversedict: # keep IDLE running while files are open. |
| 1439 root.mainloop() | |
| 1439 root.destroy() | 1440 root.destroy() |
| 1440 | 1441 |
| 1441 if __name__ == "__main__": | 1442 if __name__ == "__main__": |
| 1442 sys.modules['PyShell'] = sys.modules['__main__'] | 1443 sys.modules['PyShell'] = sys.modules['__main__'] |
| 1443 main() | 1444 main() |
