get data from a Toplevel when closing it
Fredrik Lundh
fredrik at pythonware.com
Sun Nov 3 12:49:10 EST 2002
"polux" <polux2001 at wanadoo.fr> wrote
> I made a class derivated from the Tkinter's Toplevel class like this :
>
> Myclass(Toplevel):
>
> def __init__(self,master,**arg)
>
> Toplevel.__init__(master,arg)
> self.master = master
>
>
> Now, I want to get data from this Toplevel (eg data from entries
> widgets) when I'm closing it.
The easiest way is to install a WM_DELETE_WINDOW handler; see the
"Protocols" section on the following page for more info and examples:
http://www.pythonware.com/library/tkinter/introduction/events-and-bindings.htm
</F>
More information about the Python-list
mailing list