Border for tkinter Label

If you want a border, the option is borderwidth. You can also choose the relief of the border: "flat", "raised", "sunken", "ridge", "solid", and "groove".

For example:

l1 = Label(root, text="This", borderwidth=2, relief="groove")

Note: "ridge" and "groove" require at least two pixels of width to render properly

examples of tkinter borders

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)