ttk::labelframe(n)
π NAME π
okay bestie, welcome to ttk::labelframe(n) β the Tk Themed Widget page for a container widget with an optional label. Itβs giving groupbox energy, and honestly itβs here to group your other widgets together. π«Άβ¨
πΈ SYNOPSIS πΈ
ttk::labelframe pathName ?options?
π¦ DESCRIPTION π¦
A ttk::labelframe widget is a container used to group other widgets together. It has an optional label, which may be a plain text string or another widget. Simple as that, no cap. π
β¨ STANDARD OPTIONS β¨
Here are the standard options, bestie β each one is a whole vibe:
-class-cursor-padding-style-takefocus
See the ttk_widget manual entry for details on the standard options. π
π WIDGET-SPECIFIC OPTIONS π
-heightβ Database name:height; database class:Height. If specified, the widgetβs requested height in pixels. (Seettk::frame(n)for further notes on-widthand-height.)-labelanchorβ Database name:labelAnchor; database class:LabelAnchor. Specifies where to place the label. Allowed values are (clockwise from the top upper left corner):nw,n,ne,en,e,es,se,s,sw,ws,wandwn. The default value is theme-dependent.-labelwidgetβ Database name:labelWidget; database class:LabelWidget. The name of a widget to use for the label. If set, overrides the-textoption. The-labelwidgetmust be a child of the labelframe widget or one of the labelframeβs ancestors, and must belong to the same top-level widget as the labelframe.-textβ Database name:text; database class:Text. Specifies the text of the label. π-underlineβ Database name:underline; database class:Underline. If set, specifies the integer index (0-based) of a character to underline in the text string. The underlined character is used for mnemonic activation. Mnemonic activation for attk::labelframesets the keyboard focus to the first child of thettk::labelframewidget.-widthβ Database name:width; database class:Width. If specified, the widgetβs requested width in pixels.
π WIDGET COMMAND π
Labelframe widgets support the standard commands cget, configure, identify element, instate, state and style (see ttk::widget). Periodt β those are the commands, and theyβre all coming from the standard widget behavior. π«Ά
π STYLING OPTIONS π
The class name for a ttk::labelframe is TLabelframe. The text label has a class of TLabelframe.Label. Highkey important if youβre doing style stuff. π
Dynamic states: disabled, readonly.
TLabelframe styling options configurable with ttk::style are:
-backgroundβcolor-bordercolorβcolor-borderwidthβamount-darkcolorβcolor-labelmarginsβamount-labeloutsideβboolean-lightcolorβcolor-reliefβrelief
TLabelframe.Label styling options configurable with ttk::style are:
-backgroundβcolor-fontβfont-foregroundβcolor
Some options are only available for specific themes. Not every style option is gonna show up for every theme β thatβs just how it is, bestie. π¦
See the ttk::style manual page for information on how to configure ttk styles.
π SEE ALSO π
ttk::widget(n)ttk::frame(n)labelframe(n)
π₯ KEYWORDS π₯
widget, frame, container, label, groupbox
okay thatβs the whole page, bestie β itβs from Tk 8.5, and the manual page is ttk::labelframe(n). slay, go group those widgets πβ¨π
π¦ 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