Ana_wtk17 Ana_wtk17 - 6 months ago 20
Python Question

How to add border to a button in python for Tkinter?

b1 = Button(tk, text=" ", font=("Consolas 30 bold"), height = 1, width = 4,bg = "white", command=lambda:checker(b1))


What piece of code to I add to this to add a border to the button, as in making it thicker?

Answer

as per http://effbot.org/tkinterbook/button.htm:

highlightthickness= variable

The width of the highlight border. The default is system specific (usually one or two pixels). (highlightThickness/HighlightThickness)

Comments