Relief
Relief is used to Specify Appearance of a decorative border. Default value is FLAT Relief Refers to Certain Simulated 3-D Effects Around the Outside of the widget.
Relief Attributes Are flat, solid, sunken, groove, ridge and raised.
Example:
from tkinter import *
mywindow = Tk()
mywindow.title("Relief In Lable")
mywindow.geometry("800x400+500+86")
mywindow.config(bg="#FFF8DC")label1 = Label(mywindow, text="RELIEF==FLAT", bg="#76EE00",font=("times", 25),
borderwidth=15, relief="flat")
label2 = Label(mywindow, text="RELIE==SOLID", bg="#EE7621",font=("helvetica", 25),
borderwidth=15, relief="solid")
label3 = Label(mywindow, text="RELIEF==SUNKEN",bg="#B23AEE", font=("helvetica", 30),
borderwidth=15, relief="sunken")
label1.pack(pady=20)
label2.pack(pady=20)
label3.pack(pady=20)
mywindow.mainloop()Write Down Code Your Code Editor. To show Your Output. If Use Pycharm Press Shift+F10 and Show Your Output.
Lets Enjoy..........
Post a Comment