小编Hea*_*int的帖子

Tkinter 的按钮无法更改边框颜色

这是我的 Tkinter 代码:

Photoshop = Tkinter.Button(root, 
    text = 'Photoshop',
    fg = '#37d3ff',
    bg = '#001d26',
    bd =  10, 
    highlightthickness=4, 
    highlightcolor="#37d3ff", 
    highlightbackground="#37d3ff", 
    borderwidth=4)
Run Code Online (Sandbox Code Playgroud)

但是,在我对 Button 进行网格化后,边框的颜色没有显示出来。相反,它使用默认的灰色。

python tkinter button

2
推荐指数
2
解决办法
8280
查看次数

标签 统计

button ×1

python ×1

tkinter ×1