iwidgets::dialogshell(1)
π iwidgets::dialogshell β the manual page, bestie edition β¨
okay so this is the page for iwidgets::dialogshell from [incr Widgets] (yes that's the manual name, it's giving very niche-iconic). let's get into it π«Ά
πΈ NAME πΈ
iwidgets::dialogshell β create and manipulate a dialog shell widget. that's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
iwidgets::dialogshell pathName ?options?
π¦ INHERITANCE π¦
the family tree, the lineage, the ancestry dot com moment:
itk::Toplevel <- iwidgets::Shell <- iwidgets::Dialogshell
she got it from her mama (and her grandma) π
β STANDARD OPTIONS β
backgroundcursorforeground
see the "options" manual entry for details on the standard options β she's not gonna re-explain the classics, iykyk
π INHERITED OPTIONS π
heightmastermodalitywidth
see the "shell" manual entry for details on the above inherited options.
and also:
title
see the "Toplevel" manual entry for details on the above inherited options.
π WIDGET-SPECIFIC OPTIONS π
these are the ones that are hers, the main character options, no cap:
-buttonboxpadxβ Name:buttonBoxPadX, Class:Pad. specifies a non-negative padding distance to leave between the button group and the outer edge of the button box in the x direction. the value may be given in any of the forms acceptable toTk_GetPixels. default is5pixels. π-buttonboxpadyβ Name:buttonBoxPadY, Class:Pad. specifies a non-negative padding distance to leave between the button group and the outer edge of the button box in the y direction. the value may be given in any of the forms acceptable toTk_GetPixels. default is5pixels. π-buttonboxposβ Name:buttonBoxPos, Class:Position. attaches buttons to the given side of the dialog:n,s,eorw. default iss. (south side represent π€)-padxβ Name:padX, Class:Pad. specifies a padding distance for the childsite in the X-direction, in any of the forms acceptable toTk_GetPixels. default is10.-padyβ Name:padY, Class:Pad. specifies a padding distance for the childsite in the Y-direction, in any of the forms acceptable toTk_GetPixels. default is10.-separatorβ Name:separator, Class:Separator. specifies whether a line is drawn to separate the buttons from the dialog box contents, in any of the forms acceptable toTcl_GetBoolean. default istrue. β¨-thicknessβ Name:thickness, Class:Thickness. specifies the thickness of the separator, in any of the forms acceptable toTk_GetPixels. default is3pixels.
π DESCRIPTION π
the iwidgets::dialogshell command creates a dialog shell, which is a top level widget composed of a button box, a separator, and a child site area. it's like a little apartment where your content lives rent-free in the middle and the buttons hang out at the edge π
the class also has methods to control button construction. yes bestie, she builds the buttons for you. obsessed.
π§ METHODS π§
the iwidgets::dialogshell 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 dialogshell widgets:
π INHERITED METHODS π
activatecenterdeactivate
see the "shell" manual entry for details on the above inherited methods.
πΈ ASSOCIATED METHODS πΈ
addbuttonconfiguredefaultdeletehideindexinsertinvokeshow
see the "buttonbox" manual entry for details on the associated methods.
π₯ WIDGET-SPECIFIC METHODS π₯
pathName cgetoption β returns the current value of the configuration option given by option. option may have any of the values accepted by theiwidgets::dialogshellcommand.pathName childsiteβ returns the pathname of the child site widget. (where your content goes, bestie π«Ά)pathName configure ?option? ?value option value ...?β query or modify the configuration options of the widget.- if no option is specified, returns a list describing all of the available options for
pathName(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 the
iwidgets::dialogshellcommand.
- if no option is specified, returns a list describing all of the available options for
π COMPONENTS π
dschildsiteβ Class:frame. thedschildsitecomponent is the user child site for the dialog shell. see the "frame" widget manual entry for details on thedschildsitecomponent item.separatorβ Class:frame. the separator component divides the area between the user child site and the button box. see the "frame" widget manual entry for details on the separator component item.bboxβ Class:ButtonBox. thebboxcomponent is the button box containing the buttons for the dialog shell. see the "ButtonBox" widget manual entry for details on thebboxcomponent item.
π EXAMPLE π
here's the vibe, copy-paste it and slay:
package require Iwidgets 4.0
iwidgets::dialogshell .ds -modality none
.ds add OK -text "OK"
.ds add Cancel -text "Cancel"
.ds default OK
.ds activate
π AUTHOR π
Mark L. Ulferts β the icon, the legend, the moment π
β KEYWORDS β
dialogshell, dialog, shell, widget
and that's the whole page bestie!! this one lives under Tk and the manual name is iwidgets::dialogshell(1) β go forth and build dialogs that absolutely eat πβ¨π no cap, fr fr π¦
π¦ 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) 1995 DSC Technologies Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms