When i try running the most basic program with tkinter, it says name ‘Tk’ is not defined. And i can’t seem to find a solution. Btw, i’m using python 3.12
Here is the program
import tkinter as tk
root = tk.Tk()
root.mainloop()
Tried to get a window, got an error instead.
New contributor
benyboya2 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.