Kookies
Kookies

Reputation: 73

Can I run two windows with input at once Python?

I'm trying to create a window that can do multiple things e.g open a calculator, etc. I'm using Pygame to create the original window. The calculator is made with Tkinter and is fully functional. After a certain event:

      t1 = Thread(target=i['function']())
      t1.start()

this happens creating the calculator and the calculator works perfectly. However, the Pygame window won't take any input and won't allow me to open another calculator or even close the window. I would like to know if/how it's possible to make this work. Any help would be greatly appreciated.

Upvotes: 1

Views: 227

Answers (1)

Kookies
Kookies

Reputation: 73

Thanks to Bryan Oakley for helping me with this but I wasn't actually creating threads I was just calling the function I had to write it like this:

t1 = Thread(target=i['function'])
t1.start()

Upvotes: 1

Related Questions