dallas74
dallas74

Reputation: 31

Python tkinter button returns to black while pressed

I'm using Tkinter and I've noticed that my buttons become black while mouse button is held down irrespective of what color I have stated when declaring the button.

Does anyone know if this can be controlled?

Kind regards,¨

Daniel

Upvotes: 1

Views: 146

Answers (1)

galah92
galah92

Reputation: 3991

You're looking for the activebackground and activeforeground properties.
Read more about them here.

Upvotes: 6

Related Questions