1ttk::panedwindow(n) Tk Themed Widget ttk::panedwindow(n)
2
3
4
5______________________________________________________________________________
6
8 ttk::panedwindow - Multi-pane container window
9
11 ttk::panedwindow pathname ?options?
12 pathname add window ?options...?
13 pathname insert index window ?options...?
14_________________________________________________________________
15
17 A ttk::panedwindow widget displays a number of subwindows, stacked
18 either vertically or horizontally. The user may adjust the relative
19 sizes of the subwindows by dragging the sash between panes.
20
22 -class -cursor -takefocus
23 -style
24
25 See the ttk_widget manual entry for details on the standard options.
26
28 [-orient orient] Specifies the orientation of the window. If vertical,
29 subpanes are stacked top-to-bottom; if horizontal, subpanes are stacked
30 left-to-right. [-width width] If present and greater than zero, speci‐
31 fies the desired width of the widget in pixels. Otherwise, the
32 requested width is determined by the width of the managed windows.
33 [-height height] If present and greater than zero, specifies the
34 desired height of the widget in pixels. Otherwise, the requested
35 height is determined by the height of the managed windows.
36
38 The following options may be specified for each pane: [-weight weight]
39 An integer specifying the relative stretchability of the pane. When
40 the paned window is resized, the extra space is added or subtracted to
41 each pane proportionally to its -weight.
42
44 Supports the standard configure, cget, state, and instate commands; see
45 ttk::widget(n) for details. Additional commands:
46
47 pathname add subwindow options...
48 Adds a new pane to the window. See PANE OPTIONS for the list of
49 available options.
50
51 pathname forget pane
52 Removes the specified subpane from the widget. pane is either
53 an integer index or the name of a managed subwindow.
54
55 pathname identify component x y
56 Returns the name of the element under the point given by x and
57 y, or the empty string if no component is present at that loca‐
58 tion. If component is omitted, it defaults to sash. The fol‐
59 lowing subcommands are supported:
60
61 pathname identify element x y
62 Returns the name of the element at the specified loca‐
63 tion.
64
65 pathname identify sash x y
66 Returns the index of the sash at the specified location.
67
68 pathname insert pos subwindow options...
69 Inserts a pane at the specified position. pos is either the
70 string end, an integer index, or the name of a managed subwin‐
71 dow. If subwindow is already managed by the paned window, moves
72 it to the specified position. See PANE OPTIONS for the list of
73 available options.
74
75 pathname pane pane -option ?value ?-option value...
76 Query or modify the options of the specified pane, where pane is
77 either an integer index or the name of a managed subwindow. If
78 no -option is specified, returns a dictionary of the pane option
79 values. If one -option is specified, returns the value of that
80 option. Otherwise, sets the -options to the corresponding val‐
81 ues.
82
83 pathname panes
84 Returns the list of all windows managed by the widget.
85
86 pathname sashpos index ?newpos?
87 If newpos is specified, sets the position of sash number index.
88 May adjust the positions of adjacent sashes to ensure that posi‐
89 tions are monotonically increasing. Sash positions are further
90 constrained to be between 0 and the total size of the widget.
91 Returns the new position of sash number index.
92
94 ttk::widget(n), ttk::notebook(n), panedwindow(n)
95
96
97
98Tk 8.5.9 ttk::panedwindow(n)