ttk::frame(3tk)
π ttk::frame β the manual page, but make it cute
okay so bestie, this is ttk::frame(3tk), from the Tk Themed Widget family, and honestly? it's the chillest little icon in the whole toolkit. no drama, no main character antics, just vibes and containment. let's get into it π
β¨ NAME β¨
ttk::frame β a simple container widget π
like, "simple" as in unbothered. it holds your other widgets. that's the job. that's the whole job. and it ate.
πΈ SYNOPSIS πΈ
ttk::frame pathName ?options?
π¦ DESCRIPTION π¦
a ttk::frame widget is a container, and its entire purpose in life is to group other widgets together π«Ά that's it. that's the girl. she's a group chat, and all your other widgets are the members. no cap.
π STANDARD OPTIONS π
she comes with the classics, fr fr:
-class-cursor-padding-style-takefocus
head over to the ttk_widget manual entry if you want the full tea on all the standard options β
π WIDGET-SPECIFIC OPTIONS π
these are the ones that are hers.
-borderwidthβ database nameborderWidth, database classBorderWidth. this is the desired width of the widget border. defaults to0. and like... lowkey it may be ignored depending on the theme used π so don't come for her if your theme said no.-reliefβ database namerelief, database classRelief. one of the standard Tk border styles:flat,groove,raised,ridge,solid, orsunken. defaults toflat. pick your fighter β¨-widthβ database namewidth, database classWidth. if specified, the widget's requested width in pixels. yes bestie, requested. we'll get to that π-heightβ database nameheight, database classHeight. if specified, the widget's requested height in pixels.
π WIDGET COMMAND π
frame widgets support the standard commands cget, configure, identify element, instate, state and style β check ttk::widget for the receipts π
β οΈ NOTES β οΈ
okay this part matters, listen up:
if you use thepack,grid, or other geometry managers to manage the children of the frame, the GM's requested size will normally take precedence over the frame widget's-widthand-heightoptions. π
so all that width and height you specified? yeah, the geometry manager might just walk in and rearrange the furniture. if you want to change that behavior, pack propagate and grid propagate are your besties. periodt.
π STYLING OPTIONS π
the class name for a ttk::frame is TFrame π
TFrame styling options configurable with ttk::style are:
-background color-relief relief
some options are only available for specific themes β so if something's not working, it's not you, it's the theme bestie π§
see the ttk::style manual page for info on how to configure ttk styles β¨
π BINDINGS π
when a new ttk::frame is created, it has no default event bindings. none. zero. because ttk::frames are not intended to be interactive β she is not here to be clicked, she is here to hold space. queen of boundaries π
π₯ SEE ALSO π₯
ttk::widget(3tk)ttk::labelframe(3tk)frame(3tk)
β KEYWORDS β
widget, frame, container
and that's the whole page, bestie!! go forth and group your widgets, you absolute icon πβ¨
this was Tk 8.5, page ttk::frame(3tk) β mwah, no notes, bye ππ
π¦
π¦ where this page comes from
- debian trixie: tk9.0-doc 9.0.1-3
- ubuntu questing: tk9.0-doc 9.0.2-1
- ubuntu resolute: tk9.0-doc 9.0.3-1
- ubuntu stonking: tk9.0-doc 9.0.4-1
- Copyright (c) 2005 Joe English
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms