📌  相关文章
📜  如何在 tkinter 中为按钮设置背景颜色 - Python 代码示例

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

代码示例3
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')