Tkinter Listbox Get Attribute Error
Been banging my head against a wall with this one. Just getting the ropes of Tkinter, followed a tutorial to get the basics, now working forward to implement my own stuff. I creati
Solution 1:
You are accessing self.mapLBox
but you aren't defining self.mapLBox
. Just because you create variable named mapLBox
doesn't mean it automatically becomes an attribute of the object.
You need to change this:
mapLBox = Tkinter.Listbox(...)
... to this:
self.mapLBox = Tkinter.Listbox(...)
... and, of course, change the other places where you reference mapLBox
.
Post a Comment for "Tkinter Listbox Get Attribute Error"