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,GROVE, RIDGE and RAISED.


Example: 


from tkinter import *


mywindow = Tk()
mywindow.title("Relief In Lable")
mywindow.geometry("800x400+500+86")
mywindow.config(bg="#FFF8DC")

lbl1= Label(mywindow, text="RELIEF==GROOVE",bg="#76EE00"
                    font=("helvetica", 30), borderwidth=20, relief="groove")
lbl2 = Label(mywindow, text="RELIEF==RIDGE",bg="#EE7621"
                    font=("helvetica", 30), borderwidth=20, relief="ridge")
lbl3 = Label(mywindow, text="RELIEF==RAISED", bg="#B23AEE"
                   font=("helvetica", 30), borderwidth=20, relief="raised")

lbl1.pack(pady=10)
lbl2.pack(pady=20)
lbl3.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

Previous Post Next Post