code.
import tkinter as tk
root = tk.TK()
error : ‘AttributeError: module ‘tkinter’ has no attribute ‘TK’. Did you mean: ‘Tk’?’
I’ve tried many ways. here is screenshot.
anyone can help?
code.
import tkinter as tk
root = tk.TK()
error : ‘AttributeError: module ‘tkinter’ has no attribute ‘TK’. Did you mean: ‘Tk’?’
I’ve tried many ways. here is screenshot.
anyone can help?
As suggested in the error message, try Tk
instead of TK
. That’s uppercase T lowercase k; no uppercase K.
Thanks.
That’s a silly mistake, sorry to ask the question.