[PythonCE] self.protocol?

Jim Walsh jimswalsh at gmail.com
Thu Mar 6 14:55:23 CET 2008


May I ask what the "self" is in your example.  I don't know the protocol
method?
Thanks,
Jim W



Frédéric Mantegazza-2 wrote:
> 
> 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
> _______________________________________________
> PythonCE mailing list
> PythonCE at python.org
> http://mail.python.org/mailman/listinfo/pythonce
> 
> 

-- 
View this message in context: http://www.nabble.com/Tkinter-captures-the-little-%22X%22-close-window-button--tp15852528p15873133.html
Sent from the Python - pythonce mailing list archive at Nabble.com.



More information about the PythonCE mailing list