一半的tkinter按钮边框是白色的吗?

时间:2018-08-14 15:55:02

标签: python python-3.x tkinter

出于某种奇怪的原因,我的Tkinter按钮的边框是一半白色一半黑色,这是正常/可修复的吗?我希望整个边框都是黑色的

        btn_Next1 = tk.Button(self, text="Next",
                           command=lambda: controller.show_frame(PageOne))
        btn_Next1.configure(font=buttonfont, fg='#ffffff', background='#00497a', highlightbackground='#3E4149', borderwidth=2)

Half black half white button

1 个答案:

答案 0 :(得分:3)

您需要为按钮设置<script language="JavaScript" type="text/javascript"> TrustLogo("https://ourfakesite.com/logo.png", "CL1", "none"); </script> 属性,默认情况下为relief。也许您想要RAISED

来自the docs

FLAT