Message140624
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. |
|
Date |
User |
Action |
Args |
2011-07-18 21:48:36 | Andy.Wildenberg | set | recipients:
+ Andy.Wildenberg, ronaldoussoren |
2011-07-18 21:48:36 | Andy.Wildenberg | set | messageid: <1311025716.17.0.268047482862.issue12584@psf.upfronthosting.co.za> |
2011-07-18 21:48:35 | Andy.Wildenberg | link | issue12584 messages |
2011-07-18 21:48:35 | Andy.Wildenberg | create | |
|