I create a button that I want to be white/red when disabled/active:
self.btn = tk.Button(cfg.win, text="Button", name = "btn", state="disabled", bg="white", activebackground="red")
where self refers to my Gui class, cfg.win is a Tkinter window with the .Tk() method.
Then a callback changes the color of the button:
self.btn.configure(state = "active")
The button turns red. When I hover on the mouse with the mouse the color is still red. However, when I leave the area of the button it turns white. The button stays active. What am I missing?