Re: Tkinter captures the little "X" close window button?
Frédéric Mantegazza <[email protected]> Wed, 5 Mar 2008 17:18:12 +0100
| Newsgroups | gmane.comp.python.windows-ce |
|---|---|
| Organization | Home |
| Message-ID | <[email protected]> |
On mercredi 05 mars 2008, Jim Walsh wrote:
> I want to do something when the user taps the little "X" in the upper
> right hand corner. Can we do the default action of hiding the app?
I use something like:
self.protocol("WM_DELETE_WINDOW", self._quit)
to bind the X close button to my _quit() method. But I don't know how to
hide the app (you mean iconify?)...
--
Frédéric
http://www.gbiloba.org