📜  在 thkinter 中更改按钮的颜色 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:49.659000             🧑  作者: Mango

代码示例1
button = Button(tkWindow, bg='blue')
button = Button(tkWindow, bg='black')
button = Button(tkWindow, bg='white')
button = Button(tkWindow, bg='red')
#hex values
button = Button(tkWindow, bg='#54FA9B')
button = Button(tkWindow, bg='#A877BA')