[Tkinter] problem

Jeff Epler jepler at unpythonic.net
Sat Jan 29 23:00:51 EST 2005

These lines
> if __name__ == '__main__':
>     OptionsWindow()
mean "if this source code is the main program (not an imported module),
call OptionsWindow()".  So the behavior should be different when the
source code is the main program ('python opt_newlogin.py') and when it's
imported ('python -c "import opt_newlogin"')

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050129/0ea53d82/attachment.sig>

More information about the Python-list mailing list