Message140624
| 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: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 |
|