This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author roger.serwy
Recipients Guilherme.Simões, Todd.Rovito, gpolo, r.david.murray, roger.serwy, terry.reedy
Date 2013-04-24.04:46:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366778773.14.0.972423553821.issue17822@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-04-24 04:46:13roger.serwysetrecipients: + roger.serwy, terry.reedy, gpolo, r.david.murray, Todd.Rovito, Guilherme.Simões
2013-04-24 04:46:13roger.serwysetmessageid: <1366778773.14.0.972423553821.issue17822@psf.upfronthosting.co.za>
2013-04-24 04:46:13roger.serwylinkissue17822 messages
2013-04-24 04:46:12roger.serwycreate