Label border: RAISED, SUNKEN, FLAT, RIDGE, GROOVE, SOLID : Label « GUI Tk « Python






Label border: RAISED, SUNKEN, FLAT, RIDGE, GROOVE, SOLID

Label border: RAISED, SUNKEN, FLAT, RIDGE, GROOVE, SOLID
 

from Tkinter import *

root = Tk()
root.title('Frames')
for relief in [RAISED, SUNKEN, FLAT, RIDGE, GROOVE, SOLID]:
    f = Frame(root, borderwidth=2, relief=relief)
    Label(f, text=relief, width=10).pack(side=LEFT)
    f.pack(side=LEFT, padx=5, pady=5)        

root.mainloop()


           
         
  








Related examples in the same category

1.A label and a buttonA label and a button
2.Basic coding styles with labelsBasic coding styles with labels
3.Set side to topSet side to top
4.Add a label to a frameAdd a label to a frame
5.Load image to label
6.Label wraplength
7.Set text and font for Label
8.Label styleLabel style
9.Label on frameLabel on frame
10.Our First Tkinter Program: a label and a windowOur First Tkinter Program: a label and a window
11.Simplest LabelSimplest Label
12.Label background and foregroundLabel background and foreground
13.StringVar and Label variable
14.Bind variable to Label
15.Label width and heightLabel width and height