'AttributeError: '_tkinter.tkapp' object has no attribute 'mainloop'
from tkinter import *
root = Tk()
#creating a label widget
myLabel = Label(root, text="Module selection")
#displaying it on the screen
myLabel.pack()
root.mainLoop()
so I'm just watching this very simple tkinter tutorial video https://www.youtube.com/watch?v=YXPyB4XeYLA
and I'm already getting this error. I followed his steps exactly. Is this code out of date?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
