TclError: bad window path name (Python) TclError: bad window path name (Python) tkinter tkinter

TclError: bad window path name (Python)


The problem was that I had the buttonsList declared outside of the methods, as an attribute, and when I destroy the instance of the class, the attributes disappear, so I had to declare the list inside the constructor, doing this I have no problem with the destroy.