出于某种奇怪的原因,我的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)
答案 0 :(得分:3)
您需要为按钮设置<script language="JavaScript" type="text/javascript">
TrustLogo("https://ourfakesite.com/logo.png", "CL1", "none");
</script>
属性,默认情况下为relief
。也许您想要RAISED
?
来自the docs:
FLAT