Here is my code guys:
from tkinter import *
root = Tk()
theLabel = Label(root, 'Hello World')
theLabel.pack()
root.mainloop()
Here is the error:
Traceback (most recent call last): File "C:/Users/argel/PycharmProjects/day2/rockpaper.py", line 4, in theLabel = Label(root, 'Hello World') File "C:\Users\argel\AppData\Local\Programs\Python\Python36-32\lib\tkinter__init__.py", line 2760, in init Widget.init(self, master, 'label', cnf, kw) File "C:\Users\argel\AppData\Local\Programs\Python\Python36-32\lib\tkinter__init__.py", line 2289, in init classes = [(k, v) for k, v in cnf.items() if isinstance(k, type)] AttributeError: 'str' object has no attribute 'items'
Thank you for your help