| Widgets/PanedWindow |
UserPreferences |
| Tkinter Wiki | FrontPage | RecentChanges | TitleIndex | WordIndex | SiteNavigation | HelpContents | moin.sf.net |
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.
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() |
http://effbot.org/tkinterbook/panedwindow.htm
http://wiki.tcl.tk/panedwindow
http://www.purl.org/tcl/home/man/tcl8.4/TkCmd/panedwindow.htm