How do I change the colour of my button and label on Tkinter?

后端 未结 4 466
盖世英雄少女心
盖世英雄少女心 2021-01-26 12:35

My task is to create a label and button on Tkinter. The button has to change the label, and I have to change the colour of the button and the label. I have changed the colour of

4条回答
  •  伪装坚强ぢ
    2021-01-26 13:12

    From

    Python, Tkinter, Change of label color

    This will change the label color of a button:

    button1.configure(foreground="red")

    I assume the same approach can be used for the label.

提交回复
热议问题