Python won't recognise attribute Python won't recognise attribute tkinter tkinter

Python won't recognise attribute


The Tkinter module is a little old-skool; the text value can be accessed via an item lookup:

relStatus.set(fire['text'])

See the Setting Options section of the Tkinter documentation.


topLabel = Label(app, textvariable = labelText, height = 5).pack()  # so topLabel is NonetopLabel = Label(app, textvariable = labelText, height = 5)topLabel.pack() # topLabel is Label