iwidgets::labeledframe(1)
π iwidgets::labeledframe β the [incr Widgets] era π
okay bestie, come sit with me because we're about to build the cutest little labeled frame you've ever seen. this is iwidgets::labeledframe from the one and only [incr Widgets] manual, section 1. π
β¨ NAME β¨
iwidgets::labeledframe β create and manipulate a labeled frame widget. that's it, that's the job. π
π¦ SYNOPSIS π¦
iwidgets::labeledframe pathName ?options?
πΈ INHERITANCE πΈ
it's giving family tree, and our girl descends like this:
itk::Archetype <- iwidgets::Labeledframe
so itk::Archetype is the parent, iwidgets::Labeledframe is the child. generational slay. π
β STANDARD OPTIONS β
these are the classic hand-me-downs everyone gets:
backgroundborderwidthcursorforegroundrelief
if you want the full tea on these, go read the "options" manual entry. it's all documented there, no cap. π
π WIDGET-SPECIFIC OPTIONS π
these are the ones that make labeledframe her. π
- Name:
iPadX, Class:IPad, Command-Line Switch:-ipadxβ this is the horizontal padding space sitting between the border and the childsite. the value can be any of the forms acceptable toTk_GetPixels. the default is0. - Name:
iPadY, Class:IPad, Command-Line Switch:-ipadyβ same energy but vertical: the vertical padding space between the border and the childsite. value can be any form acceptable toTk_GetPixels. the default is0. - Name:
labelBitmap, Class:Bitmap, Command-Line Switch:-labelbitmapβ a bitmap to show in the label, in any of the forms acceptable toTk_GetBitmap. heads up: this one overrides thelabeltextoption. π - Name:
labelImage, Class:Image, Command-Line Switch:-labelimageβ an image to be used as the label. the image can be any of the values created by theimage createcommand. this option overrides both thelabelbitmapandlabeltextoptions. main character energy fr. πΌοΈ - Name:
labelMargin, Class:Margin, Command-Line Switch:-labelmarginβ the distance between the inner edge of the hull frame's relief and the label, in any of the forms acceptable toTk_GetPixels. the default is10pixels. - Name:
labelText, Class:Text, Command-Line Switch:-labeltextβ the text of the label around the childsite. βοΈ - Name:
labelVariable, Class:Variable, Command-Line Switch:-labelvariableβ the text variable of the label around the childsite. π - Name:
labelFont, Class:Font, Command-Line Switch:-labelfontβ the font of the label around the childsite. cute typography moment. π - Name:
labelPos, Class:Position, Command-Line Switch:-labelposβ where the label sits inside the grooved relief of the hull widget. your choices are:ne,n,nw,se,s,sw,en,e,es,wn,w,ws. the default isn. π§
π DESCRIPTION π
so what does iwidgets::labeledframe actually do? it creates a hull frame with a grooved relief, a label positioned within that grooved relief of the hull frame, and a frame childsite. the frame childsite can be filled with any widget, either via a derived class or through the use of the childsite method. π«Ά
this class was designed to be a general purpose base class for supporting the combination of a labeled frame and a childsite. the options include the ability to position the label at configurable locations within the grooved relief of the hull frame, and to control the display of the label. literally so flexible it's iconic. β¨
π METHODS π
the iwidgets::labeledframe command creates a new Tcl command whose name is pathName. this command may be used to invoke various operations on the widget. it has the following general form:
pathName option ?arg arg ...?
option and the args determine the exact behavior of the command. the following commands are possible for labeledframe widgets:
π WIDGET-SPECIFIC METHODS π
pathName childsiteβ return the path name of the child site. that's where your lil widgets go live. πpathName cget optionβ returns the current value of the configuration option given by option. option may have any of the values accepted by theiwidgets::labeledframecommand. πpathName configure ?option? ?value option value ...?β query or modify the configuration options of the widget. if no option is specified, it returns a list describing all of the available options forpathName(seeTk_ConfigureInfofor information on the format of this list). if option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). if one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. option may have any of the values accepted by theiwidgets::labeledframecommand. π οΈ
π§ COMPONENTS π§
- Name:
label, Class:labelβ the label component provides the label for the labeled widget. see the "label" widget manual entry for details on the label component item. π
π₯ EXAMPLE π₯
the labeledframe was primarily meant to be a base class. the Radiobox is a good example of a derived class of the labeledframe class. in order to provide equal support for composite classes, the 'childsite' method also exists. the following is an example of 'childsite' method usage. π«
package require Iwidgets 4.0
iwidgets::labeledframe .lw -labeltext "Entry Frame" -labelpos n
pack .lw -fill both -expand yes -padx 10 -pady 10
set cs [.lw childsite]
pack [iwidgets::entryfield $cs.entry1 -labeltext "Name:"] -side top
-fill x
pack [iwidgets::spinint $cs.entry2 -labeltext "Number:"] -side top
-fill x
pack [iwidgets::pushbutton $cs.entry3 -text "Details:"] -side top -fill
x
π AUTHOR π
John A. Tucker β thank you for this gift, king. πββοΈ
π KEYWORDS π
labeledframe, widget
okay that's the whole page bestie, we ate and left no crumbs. this one came to you from the Tk manual, filed under iwidgets::labeledframe(1) β go forth and frame things, labeled-ly. π¦β¨π
π¦ where this page comes from
- debian bookworm: iwidgets4-doc 4.1.1-2.1
- debian trixie: iwidgets4-doc 4.1.1-4
- ubuntu jammy: iwidgets4-doc 4.1.1-2.1
- ubuntu noble: iwidgets4-doc 4.1.1-2.1
- ubuntu resolute: iwidgets4-doc 4.1.1-4
- ubuntu stonking: iwidgets4-doc 4.1.1-4
- Copyright (c) 1997 DSC Technologies Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms