b1 = Button(tk, text=" ", font=("Consolas 30 bold"), height = 1, width = 4,bg = "white", command=lambda:checker(b1))
我要添加什么代码以在按钮上添加边框,例如使其更粗?
as per http://effbot.org/tkinterbook/button.htm :
borderwidth= variable
The width of the button border. The default is platform specific, but is usually 1 or 2 pixels. (borderWidth/BorderWidth)
not to be confused with:
highlightthickness= variable
The width of the highlight border. The default is system specific (usually one or two pixels). (highlightThickness/HighlightThickness)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.