[New-bugs-announce] [issue12584] win.protocol('WM_DELETE_WINDOW'...) still deletes window on OSX
Andy Wildenberg
report at bugs.python.org
Mon Jul 18 23:48:36 CEST 2011
New submission from Andy Wildenberg <andy.wildenberg at gmail.com>:
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.
----------
assignee: ronaldoussoren
components: Macintosh, Tkinter
files: bug.py
messages: 140624
nosy: Andy.Wildenberg, ronaldoussoren
priority: normal
severity: normal
status: open
title: win.protocol('WM_DELETE_WINDOW'...) still deletes window on OSX
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file22689/bug.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12584>
_______________________________________
More information about the New-bugs-announce
mailing list