【发布时间】:2017-05-07 11:02:35
【问题描述】:
经过多次尝试和谷歌搜索,我无法弄清楚如何设置按钮的背景颜色。这就是我现在所拥有的。
password_button = Button(window, text="SUBMIT", width=5, command=click, bg="black").grid(row=2, column=0, sticky=W)
任何帮助将不胜感激。
【问题讨论】:
-
不是重复的,我尝试了这些解决方案,而且那个问题是关于 python 2 而不是 python 3
-
那么请编辑问题,告诉我们您尝试了什么。另外,这里我觉得python的版本真的不重要。
标签: macos python-3.x button tkinter