Tkinter doesn't open windows

import tkinter as tk, time

window = tk.Tk()

When i run this in PyCharm, nothing happens, but when i run it in PowerShell, a window opens, as expected.

Can someone explain my small brain why this is?

1 comment
Comment actions Permalink


Check which interpreter you use in Powershell.  e.g. `get-command python`. Then configure this interpreter in PyCharm and you should get the same results.


Please sign in to leave a comment.