ttk::frame(n)
π ttk::frame(n) β Tk Themed Widget π
okay bestie, welcome to ttk::frame(n) β the manual page for the Tk themed widget that is literally just a cute little container. Think of it as the group-chat server for your other widgets: it holds them together. π«Ά
β¨ NAME β¨
ttk::frame β Simple container widget. That's it. That's the whole gig. π
π SYNOPSIS π
ttk::frame pathName ?options?
πΈ DESCRIPTION πΈ
A ttk::frame widget is a container, used to group other widgets together. No cap, it's giving "supportive bestie who holds everyone's stuff." π
β STANDARD OPTIONS β
These are the standard options, and the ttk_widget manual entry has all the details:
-class-cursor-padding-style-takefocus
π WIDGET-SPECIFIC OPTIONS π
These are the special lil settings that are just for frames. Slay.
-borderwidthβ Command-Line Name:-borderwidth; Database Name:borderWidth; Database Class:BorderWidth. This is the desired width of the widget border. Defaults to0. It may be ignored depending on the theme used, so don't come for it if your theme says no. π-reliefβ Command-Line Name:-relief; Database Name:relief; Database Class:Relief. One of the standard Tk border styles:flat,groove,raised,ridge,solid, orsunken. Defaults toflat. Very demure, very flat. β¨-widthβ Command-Line Name:-width; Database Name:width; Database Class:Width. If specified, this is the widget's requested width in pixels. π-heightβ Command-Line Name:-height; Database Name:height; Database Class:Height. If specified, this is the widget's requested height in pixels. π
π₯ WIDGET COMMAND π₯
Frame widgets support the standard commands cget, configure, identify element, instate, state and style β peep ttk::widget for the full lore. π
π NOTES π
Okay so important vibe check: if the pack, grid, or other geometry managers are used to manage the children of the frame, the geometry manager's requested size will normally take precedence over the frame widget's -width and -height options. Not me getting overruled by the GM π. You can use pack propagate and grid propagate to change this.
π¦ STYLING OPTIONS π¦
The class name for a ttk::frame is TFrame. Iconic. π
TFrame styling options configurable with ttk::style are:
-backgroundcolor-reliefrelief
Some options are only available for specific themes. That's just how it is, bestie.
See the ttk::style manual page for information on how to configure ttk styles. π
π§ BINDINGS π§
When a new ttk::frame is created, it has no default event bindings. ttk::frames are not intended to be interactive. They're the quiet supportive friend who holds the group together but does not want to be perceived. πβ¨
π SEE ALSO π
ttk::widget(n), ttk::labelframe(n), frame(n) β go read those too, iykyk. π
π KEYWORDS π
widget, frame, container β periodt. π
mwah β this fab little page is from Tk 8.5, manual entry ttk::frame(n). Stay hydrated and keep your widgets grouped, bestie. πβ¨
π¦ 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