ham*_*amp 2 python tkinter
有没有一种简单的方法来改变按钮中文本的颜色?
我button['text'] = 'input text here'用来改变推送后按钮文本的内容.颜色变化是否存在类似情况button['color'] = 'red'?
button['text'] = 'input text here'
button['color'] = 'red'
Kid*_*dus 7
使用该foreground选项可以设置按钮中文本的颜色. 例:
foreground
button.configure(foreground="red")
归档时间:
10 年,4 月 前
查看次数:
10514 次
最近记录: