ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
I have typed the code like in the video but am getting an error NameError: name 'root' is not defined. Any ideas on why this would be? Thank you for the video!
Check if you typed the code exactly, maybe it could be a typo
Same, no typos he just does not show all of his code, i think you kinda need to "activate" root to make it work i have no idea.@@margor4697
Try adding root = tk.Tk() at the top of the file after imports, this should work if tkinter was imported like this: import tkinter as tk
Done
"root not defined" i wish i could download the whole code
I have typed the code like in the video but am getting an error NameError: name 'root' is not defined. Any ideas on why this would be? Thank you for the video!
Check if you typed the code exactly, maybe it could be a typo
Same, no typos he just does not show all of his code, i think you kinda need to "activate" root to make it work i have no idea.@@margor4697
Try adding root = tk.Tk() at the top of the file after imports, this should work if tkinter was imported like this: import tkinter as tk
Done
"root not defined" i wish i could download the whole code
Try adding root = tk.Tk() at the top of the file after imports, this should work if tkinter was imported like this: import tkinter as tk