Tkinter and Window's controls

Marc mnations at airmail.net
Mon Jul 29 15:36:10 EDT 2002


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?

Thanks,
Marc



More information about the Python-list mailing list