ttk::panedwindow(n)
ttk::panedwindow(n) π β¨
okay so this is the Tk Themed Widget page, bestie β specifically the ttk::panedwindow manual, and itβs giving βmulti-pane container windowβ main character energy. π«Ά
β¨ NAME β¨
ttk::panedwindow β multi-pane container window. literally the container for stacking subwindows, no cap. π
β¨ SYNOPSIS β¨
ttk::panedwindow pathname ?options?
pathname add window ?options...?
pathname insert index window ?options...?
β¨ DESCRIPTION β¨
A ttk::panedwindow widget displays a number of subwindows, stacked either vertically or horizontally. The user may adjust the relative sizes of the subwindows by dragging the sash between panes. π
β¨ STANDARD OPTIONS β¨
-classβ standard ttk option, bestie.-cursorβ standard ttk option.-takefocusβ standard ttk option.-styleβ standard ttk option.
See the ttk_widget manual entry for details on the standard options. π
β¨ WIDGET-SPECIFIC OPTIONS β¨
-orientβ specifies the orientation of the window. Ifvertical, subpanes are stacked top-to-bottom; ifhorizontal, subpanes are stacked left-to-right.- Command-Line Name:
-orient - Database Name:
orient - Database Class:
Orient
- Command-Line Name:
-widthβ if present and greater than zero, specifies the desired width of the widget in pixels. Otherwise, the requested width is determined by the width of the managed windows.- Command-Line Name:
-width - Database Name:
width - Database Class:
Width
- Command-Line Name:
-heightβ if present and greater than zero, specifies the desired height of the widget in pixels. Otherwise, the requested height is determined by the height of the managed windows.- Command-Line Name:
-height - Database Name:
height - Database Class:
Height
- Command-Line Name:
β¨ PANE OPTIONS β¨
The following options may be specified for each pane:
-weightβ an integer specifying the relative stretchability of the pane. When the paned window is resized, the extra space is added or subtracted to each pane proportionally to its-weight.- Command-Line Name:
-weight - Database Name:
weight - Database Class:
Weight
- Command-Line Name:
β¨ WIDGET COMMAND β¨
In addition to the standard cget, configure, instate, state and style commands (see ttk::widget), panedwindow widgets support the following additional commands:
pathname add subwindow options...β adds a new pane to the window. See PANE OPTIONS for the list of available options. π¦pathname forget paneβ removes the specified subpane from the widget.paneis either an integer index or the name of a managed subwindow.pathname identify component x yβ returns the name of the element under the point given byxandy, or the empty string if no component is present at that location. Ifcomponentis omitted, it defaults tosash. The following subcommands are supported:pathname identify element x yβ returns the name of the element at the specified location.pathname identify sash x yβ returns the index of the sash at the specified location.
pathname insert pos subwindow options...β inserts a pane at the specified position.posis either the stringend, an integer index, or the name of a managed subwindow. Ifsubwindowis already managed by the paned window, moves it to the specified position. See PANE OPTIONS for the list of available options.pathname pane pane -option ?value ?-option value...β query or modify the options of the specified pane, wherepaneis either an integer index or the name of a managed subwindow. If no-optionis specified, returns a dictionary of the pane option values. If one-optionis specified, returns the value of that option. Otherwise, sets the-optionsto the corresponding values.pathname panesβ returns the list of all windows managed by the widget, in the index order of their associated panes. πpathname sashpos index ?newpos?β ifnewposis specified, sets the position of sash numberindex. May adjust the positions of adjacent sashes to ensure that positions are monotonically increasing. Sash positions are further constrained to be between0and the total size of the widget. Returns the new position of sash numberindex.
β¨ VIRTUAL EVENTS β¨
The panedwindow widget generates an <<EnteredChild>> virtual event on LeaveNotify/NotifyInferior events.
β¨ STYLING OPTIONS β¨
The class name for a ttk::panedwindow is TPanedwindow. The sash has a class name of Sash.
TPanedwindow styling options configurable with ttk::style are:
-backgroundcolor
Sash styling options configurable with ttk::style are:
-backgroundcolor-bordercolorcolor-gripsizesize (number of screen units)-handlepadamount-handlesizeamount-lightcolorcolor-sashpadamount-sashreliefrelief-sashthicknessamount
Some options are only available for specific themes. π
See the ttk::style manual page for information on how to configure ttk styles.
β¨ SEE ALSO β¨
ttk::widget(n)ttk::notebook(n)panedwindow(n)
with love from the footer, bestie: this page is from Tk 8.5, titled ttk::panedwindow(n) β and thereβs no date line in the footer, so thatβs the whole timestamp vibe. ππ«Άβ¨
π¦ where this page comes from
- alpine 3.23: tk9-doc 9.0.3-r0 Β· TCL
- alpine 3.24: tk9-doc 9.0.3-r2 Β· TCL
- fedora 43: tk 1:9.0.2-1.fc43 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- fedora 43: tk 1:9.0.2-1.fc43 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- fedora 44: tk 1:9.0.2-1.fc44 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- fedora 44: tk 1:9.0.2-1.fc44 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- nixos 26.05: tk 9.0.3
- nixpkgs unstable: tk 9.1.0
- Copyright (c) 2005 Joe English
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms