다른 위젯에서는 작동하지만 Button에서는 작동하지 않습니다.Tkinter Button의 테두리를 색칠 할 방법이 없습니까?
from Tkinter import *
root = Tk()
root.geometry("600x300+400+50")
btn_up = Button(root, text='Go UP')
btn_up.config(highlightbackground="red", highlightcolor="red", highlightthickness=10, relief=SOLID)
btn_up.pack()
root.mainloop()
파이썬 2.7 - 윈도우 10
오차가 있습니까? 아니면 색상에 두께가 나오지 않습니까? – Goralight
아, 실수로'bd = 3'을 남겨 두었습니다. –
그냥 검은 색 테두리, 오류 및 색이 표시되지 않습니다. –