I want to create window like this: tk=Tkinter.Tk() widget=Test(tk) thread.start_new_thread(widget.mainloop(), ()) I need a thread because I want to use the interpreter while the mainloop is running. I want to interact with this window. But this code doesn't work. Thanks for help