Python : AttributeError Python : AttributeError tkinter tkinter

Python : AttributeError


Most likely, in some code that you're not showing us, you're doing something like this:

self.some_button = tkinter.Button(..., command=self.interface.onClick())

Note the trailing () on onClick(). This would cause the onClick method to be called at the time the button is created, which is probably before your constructor is done constructing the instance of the Partie class.