[issue17822] Save on Close windows (IDLE)

Roger Serwy report at bugs.python.org
Wed Apr 24 06:46:13 CEST 2013


Roger Serwy added the comment:

I clicked submit too soon. The attached patch inhibits closing of the Editor when the dialog box appears. It also sets the parent argument so that Tkinter on Windows actually presents a modal dialog box.

What's happening is the the dialog box enters a nested Tk eventloop which allows the editor window to be closed by the window manager via clicking "X". That re-enters the maybesave dialog. The first one unwinds and closes the editor window, setting its internal references to None. The initial maybesave resumes execution with the rug pulled out from beneath its feet and raises errors.

----------
keywords: +patch
type: crash -> behavior
Added file: http://bugs.python.org/file29997/inhibit_close.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17822>
_______________________________________


More information about the Python-bugs-list mailing list