Can't get Tkinter to run from command line

Fredrik Lundh fredrik at effbot.org
Sat Dec 16 12:35:16 EST 2000


"Steven Sartorius" wrote:
> if __name__ == 'main': gui().mainloop()
>
> This code runs fine from within python itself but I get no window if I
> run it from the command line (i.e. python application.py).
> I'm sure I'm doing something obviously wrong but what???

    if __name__ == '__main__':
        gui().mainloop()

</F>





More information about the Python-list mailing list