[PythonCE] Tkinter captures the little "X" close window button?

Frédéric Mantegazza frederic.mantegazza at gbiloba.org
Wed Mar 5 17:18:12 CET 2008


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


More information about the PythonCE mailing list