tkinter: button color does not update tkinter: button color does not update tkinter tkinter

tkinter: button color does not update


Your button probably remains in its active state during the long calculation. So you may want to set its activeforeground color to red:

self.button3.config(activeforeground='red')

activeforeground = What foreground color to use when the button is active. The default is system specific. (activeForeground/Background)

(Tkinter Button documentation)