hamp
hamp

Reputation: 131

Python, Tkinter, Change of label color

Is there a simple way to change the color of a text in a button?

I use button['text'] = 'input text here' to change what the button text will be after the push. Does something similar exist for the change of color, button['color'] = 'red'?

Upvotes: 5

Views: 22951

Answers (1)

Kidus
Kidus

Reputation: 1833

Use the foreground option to set a color of the text in a button.

Example:

button.configure(foreground="red")

Upvotes: 16

Related Questions