Tkinter Window Closes Automatically After Python Program Has Run In Pycharm
I am programming a small Python game in PyCharm. I am doing this on a Macbook with Python version 3.4. The game opens a Tkinter window and adds some stuff to it. However, when runn
Solution 1:
Start a event loop after setting up widgets, event handlers.
# input('Press <Enter> to end the program') # (X)
window.mainloop() # OR mainloop()
Remove the call to the input
.
Post a Comment for "Tkinter Window Closes Automatically After Python Program Has Run In Pycharm"