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 Andy.Wildenberg
Recipients Andy.Wildenberg, ronaldoussoren
Date 2011-07-18.21:48:35
SpamBayes Score 0.031588834
Marked as misclassified No
Message-id <1311025716.17.0.268047482862.issue12584@psf.upfronthosting.co.za>
In-reply-to
Content
This was originally posted on http://stackoverflow.com/questions/1800452/how-to-intercept-wm-delete-window-on-osx-using-tkinter but seems not to have been reported as a bug.

On OS X (10.6.8, python 2.6.1) register a protocol on 'WM_DELETE_WINDOW'.  Your callback will get called when the user clicks on the red "kill" icon in the top-left of the window, but the window will still be destroyed.  The same file on Python 2.6.5 Linux behaves as it should, i.e. the "kill" icon is effectively disabled on the "win" window.
History
Date User Action Args
2011-07-18 21:48:36Andy.Wildenbergsetrecipients: + Andy.Wildenberg, ronaldoussoren
2011-07-18 21:48:36Andy.Wildenbergsetmessageid: <1311025716.17.0.268047482862.issue12584@psf.upfronthosting.co.za>
2011-07-18 21:48:35Andy.Wildenberglinkissue12584 messages
2011-07-18 21:48:35Andy.Wildenbergcreate