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

1. Tkinter.PanedWindow - create and manipulate PanedWindow widgets

A ?PanedWindow is a container widget that may contain any number of panes, arranged horizontally or vertically. Each pane contains one widget, and each pair of panes is separated by a moveable (via mouse movements) sash. Moving a sash causes the widgets on either side of the sash to be resized.

2. Base Classes

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

3. Gotchas

4. Example

  1 
  2 
  3 
  4 
  5 
  6 
  7 
  8 
  9 
 10 
 11 
 12 
 13 
 14 
 15 
 16 
from Tkinter import *
root = Tk()

panes = PanedWindow(root)
panes.pack(fill="both", expand="yes")

left = Label(panes, text="Left Pane")
left.pack()

right = Label(panes, text="Right Pane")
right.pack()

panes.add(left)
panes.add(right)

root.mainloop()

5. Screen Shot

panedwindow.png

6. References

[WWW]pydoc Tkinter.PanedWindow

[WWW]http://effbot.org/tkinterbook/panedwindow.htm

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

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

PythonPowered