My first post. Hope it done right.
Getting an error saying my variable not defined. I have tried several things and have watched at least 5 videos. Still no luck.
Getting an error saying my variable not defined. I have tried several things and have watched at least 5 videos. Still no luck.
root = Tk() root.title("Handifast Version 13.0") root.geometry("1100x700") root.iconbitmap("c:/guis/racehorse.ico") #DEFINE setup COMMAND def setup_command(): global fyle_path top = Toplevel() top.title("Directory Path") top.geometry("300x150") my_label= Label(top, text= "Enter Race File Directory Path") my_label.pack() top.geometry("300x200") top.iconbitmap("c:/guis/racehorse.ico") e = Entry(top, font = ("sans_serif", 12)) e.pack() fyle_path = e my_label = Label(root, fyle_path) my_label.pack()
Error:Traceback (most recent call last):
File "Hello.py", line 28, in <module>
my_label = Label(root, fyle_path)
NameError: name 'fyle_path' is not defined
Thank You