I've been trying to make a button in tkinter update. The thing is that putting what I thought was right and the solutions of other Stackoverflow questions, still does not work. The example:
def cambiacolor(): boton.config(bg= "Gray")
boton = Button(root,text="tocame para cambiar de color", bg = "Lightblue")
The thing is that as I have done it and with the module .update_idletasks()
do not work.
Any solution?