[tkinter] trouble running imported modules in main program

snakeinmyboot mikelhamer at gmail.com
Thu Aug 8 00:06:18 EDT 2013


>if __name__ == '__main__':
>     root = tkinter.Tk()
>     app = MainClass(root)  # 'MainClass' depends on the module.
>     root.mainloop
>     root.destroy 

for REAL you guys...wtf does this even mean lol. what is a boilerplate test code?



More information about the Python-list mailing list