[Python-au] How can I disable the "X" button (and the ALT+F4) from a tkinter GUI?

Graeme Cross gcross at fastmail.fm
Tue Feb 6 10:33:20 CET 2007


On 06/02/2007, at 5:15 PM, I-Ferraioli, Alfonso wrote:

> How can I disable the "X" button (and the ALT+F4) from a tkinter GUI?

Create a new protocol handler for the 'WM_DELETE_WINDOW' message  
being sent to the root window.

You may find that you can get more detailed help from the Tkinter  
mailing list:

   http://mail.python.org/mailman/listinfo/tkinter-discuss

Regards,
Graeme

--
Graeme Cross <gcross at fastmail.fm>





More information about the python-au mailing list