AttributeError: 'Button' object has no attribute 'set' - tkinter AttributeError: 'Button' object has no attribute 'set' - tkinter tkinter tkinter

AttributeError: 'Button' object has no attribute 'set' - tkinter


Button's have no set attribute.
Tkinter widget properties are set with these two alternative styles:

self.button["text"] = str(self)self.button.config(text=str(self))

Use one of them