Tkinter.LabelFrame - create and manipulate LabelFrame widgets

A labelframe is a simple container widget. Its primary purpose is to act as a spacer or container for complex window layouts. It has the features of a frame plus the ability to display a label.

Base Classes

../Widget, ../BaseWidget, ../Pack, ../Place, ../Grid, ../Misc

Gotchas

Example

   1 from Tkinter import *
   2 root = Tk()
   3 
   4 labelframe = LabelFrame(root, text="This is a LabelFrame")
   5 labelframe.pack(fill="both", expand="yes")
   6 
   7 left = Label(labelframe, text="Inside the LabelFrame")
   8 left.pack()
   9 
  10 root.mainloop()
  11 

Screen Shot

labelframe.png

References

pydoc Tkinter.LabelFrame

http://www.pythonware.com/library/tkinter/introduction/labelframe.htm

http://wiki.tcl.tk/labelframe

http://www.purl.org/tcl/home/man/tcl8.4/TkCmd/labelframe.htm

tkinter: Widgets/LabelFrame (last edited 2010-07-26 11:59:10 by localhost)