我正在尝试改变tkinter中按钮边框的颜色。
我尝试了:tk.button.config(highlightBackground=color)
tk.button.config(highlightBackground=color)
但它指出typeError:configure()缺少一个必需的位置参数:“self”
还有,我想用十六进制颜色代码来制作边框颜色。
不能在tkinter中更改按钮的边框颜色。 highlightbackground不用于边框,它用于突出显示环,它让您知道小部件何时具有键盘焦点。
highlightbackground