Tkinter Wiki   Widgets/LabelFrame UserPreferences
 
HelpContents FindPage Diffs Info Edit Subscribe XML Print View Up

1. 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.

2. Base Classes

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

3. Gotchas

4. Example

  1 
  2 
  3 
  4 
  5 
  6 
  7 
  8 
  9 
 10 
from Tkinter import *
root = Tk()

labelframe = LabelFrame(root, text="This is a LabelFrame")
labelframe.pack(fill="both", expand="yes")

left = Label(labelframe, text="Inside the LabelFrame")
left.pack()

root.mainloop()

5. Screen Shot

labelframe.png

6. References

[WWW]pydoc Tkinter.LabelFrame

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

[WWW]http://wiki.tcl.tk/labelframe

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

PythonPowered