Je continue à obtenir l'erreur suivante: AttributeError: objet « NoneType » n'a pas d'attribut « configure »Comment changer la couleur des boutons avec tkinter
# create color button
self.button = Button(self,
text = "Click Me",
command = self.color_change,
bg = "blue"
).grid(row = 2, column = 2, sticky = W)
def color_change(self):
"""Changes the button's color"""
self.button.configure(bg = "red")
excellent, c'est la solution! Merci beaucoup! –
Comment changer l'arrière-plan une fois que vous avez déjà fait le bouton? – RhetoricalRuvim