In a tkinter GUI, I have a few classes, and at the end, a while
loop. Without the while
loop, everything works fine, save for the functions in the loop. But whenever I put the while
loop on the end, the tkinter window didn't open. Here is some of my code:
while 1:
Game['paper'] += Game['totalpps']/10
time.sleep(0.1)
There is a lot I cut out, but I have a Game dictionary that has all the games data. But when the while loop is going, the tkinter window doesn't appear. Even after I put a time.sleep(5)
before the while loop, the window didn't appear.
Any ideas why?
Any help is appreciated.
Note: I am using a raspberry pi, with the Raspbian OS.