tkFileDialog closes main application
James Stroud
jstroud at mbi.ucla.edu
Thu Dec 21 16:37:37 EST 2006
Eric Brunel wrote:
> BTW, why do you create a sub-class of Frame for your application? Why
> not create a sub-class of Tk instead?
>
The short answer is that inhereting from Frame will allow embedding of
the application in another application. A Tk() can not be embedded like
this. Tk is appropriately instantiated if (and only if) __name__ ==
"__main__" here, allowing the App to run as the "main" application here.
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
More information about the Python-list
mailing list