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.

Base Classes

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

Gotchas

Example

   1 from Tkinter import *
   2 root = Tk()
   3 
   4 panes = PanedWindow(root)
   5 panes.pack(fill="both", expand="yes")
   6 
   7 left = Label(panes, text="Left Pane")
   8 left.pack()
   9 
  10 right = Label(panes, text="Right Pane")
  11 right.pack()
  12 
  13 panes.add(left)
  14 panes.add(right)
  15 
  16 root.mainloop()
  17 

Screen Shot

panedwindow.png

References

pydoc Tkinter.PanedWindow

http://effbot.org/tkinterbook/panedwindow.htm

http://wiki.tcl.tk/panedwindow

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

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