Tkinter Widget relief
The Tkinter relief property can also be applied to many Widget controls and can be used to create the border of a Widget control.
The above tag name is also the effect of the relief attribute value.
Tkinter Widget relief Example
Creates a label for the raised attribute.
"""
Set the border of the control
"""
from tkinter import *
root = Tk()
root.title("apidemos.com")
relief_str = "flat"
relief_str = "groove"
relief_str = "raised"
relief_str = "ridge"
relief_str = "solid"
relief_str = "sunken"
label = Label(root,text="raised",relief=relief_str) # Set the border of the widget control
label.pack() # Packaging and positioning components
root.mainloop()
Output: