In my python code the root.mainloop() line causes the error:
AttributeError: '_tkinter.tkapp' object has no attribute 'mainLoop'
I am on Mac and my code is:
from tkinter import *
root = Tk()
myLabel1 = Label(root, text = 'My First GUI')
myLabel1.pack()
root.mainLoop()
You should replace :
root.mainLoop()
with
root.mainloop()
all in small case letters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With