This is an unofficial mirror of Tkinter reference documentation (based on Python 2.7 and Tk 8.5) created by the late John Shipman.
It was last updated in 2013 and is unmaintained. [More info]
This is the ttk version of Section 19, “The
To create a ttk
.PanedWindow widget as the
child of a given
The options for this constructor are given in Table 52, “ttk
Table 52. ttk
||The widget class name. This may be specified when the widget is created, but cannot be changed later. For an explanation of widget classes, see Section 27, “Standardizing appearance”.|
||The cursor that will appear when the mouse is over the checkbutton; see Section 5.8, “Cursors”.|
||The height dimension of the widget.|
To stack child widgets side by side, use |
||The style to be used in rendering this widget; see Section 49, “Using and customizing ttk styles”.|
By default, a ttk|
||The width dimension of the widget.|
These options of the Tkinter
are not supported by the ttk
Table 53. Tkinter
PanedWindow options not in
Configure the |
||The cursor that will appear when the mouse is over the widget; see Section 5.8, “Cursors”.|
Methods on a ttk
.PanedWindow include all
those described in Section 46, “Methods common to all ttk widgets”, plus:
Add a new pane to the window, where
is any widget (but typically a
Frame). If you provide a
weight option, it describes the size of the pane
in the stacking dimension, relative to the other panes.
For example, for
pane 0 has
weight=1 and pane 1 has
weight=3, initially the first pane will have 1/4
of the height and the second pane will have 3/4.
Remove a pane. The argument may be either the index of the pane, counting from zero, or the child widget.
Add a new pane
to the window at the position specified by
may be either
an index or the pane widget before which you want to
insert the new pane.
This method returns a list of the
PanedWindow's child widgets.