Tkinter and Window's controls

Cameron Laird claird at starbase.neosoft.com
Mon Jul 29 17:04:20 EDT 2002


In article <4378fa6f.0207291136.2d003a4d at posting.google.com>,
Marc <mnations at airmail.net> wrote:
>Hi,
>
>I am having trouble with the X button - exit button on upper right of
>the windows created by Tkinter. I was able to 'bind' to the 'Destroy'
>event, so I know when the window is going to be destroyed, and I can
>perform some cleanup
>
>What I want to do, is do the same thing I do on my menu exit button:
>throw up a pop-up and ask 'are you sure' yes-no....
>
>The destroy event that i bound to, comes after python has started to
>shut everything down - not first, like I expected. So my question is,
>how do I bind or have control over the X button?
			.
			.
			.
Look for WM_DELETE_WINDOW in <URL: http://
www.pythonware.com/library/tkinter/introduction/events-and-bindings.htm >.
-- 

Cameron Laird <Cameron at Lairds.com>
Business:  http://www.Phaseit.net
Personal:  http://starbase.neosoft.com/~claird/home.html



More information about the Python-list mailing list