iwidgets::selectiondialog(1)
β¨ iwidgets::selectiondialog β the [incr Widgets] era π
okay bestie, sit down, hydrate, and let me tell you about iwidgets::selectiondialog β a whole selection dialog widget you can create and manipulate. yes it's giving vintage, yes it still slays. π
πΈ NAME πΈ
iwidgets::selectiondialog β make a selection dialog widget and then boss it around π
π¦ SYNOPSIS π¦
iwidgets::selectiondialog pathName ?options?
π INHERITANCE π
the family tree is long, bestie, it's giving royal lineage:
itk::Toplevel <- iwidgets::Shell <- iwidgets::Dialogshell <- iwidgets::Dialog <- iwidgets::Selectiondialog
β¨ STANDARD OPTIONS β¨
these are the classics, the ones everybody knows:
activeBackgroundbackgroundborderWidthcursorexportSelectionforegroundhighlightColorhighlightThicknessinsertBackgroundinsertBorderWidthinsertOffTimeinsertOnTimeinsertWidthselectBackgroundselectBorderWidthselectForeground
see the options manual entry for the deets on all of the above, no cap π
π§ ASSOCIATED OPTIONS π§
okay so these are the options this widget borrows from its little friends:
textBackground,textFontβ from the entryfield widget
see the entryfield widget manual entry for the details on those π«Ά
labelFontβ from the labeledwidget
see the labeledwidget widget manual entry for the details on that one π
activeRelief,elementBorderWidth,jumptroughColorβ from the scrollbar widget class
see the scrollbar widget class manual entry for the details on those β¨
textBackground,textFontβ yep, again, this time from the scrolledlistbox widget class
see the scrolledlistbox widget class manual entry for the details on those π
childsitepos,itemsCommand,itemsLabel,itemsOn,selectionCommand,selectionLabel,selectionOnβ from the selectionbox widget
see the selectionbox widget manual entry for the details on those π
π INHERITED OPTIONS π
things it got from its ancestors (nepo baby behavior, honestly):
buttonBoxPadX,buttonBoxPadY,buttonBoxPos,padX,padY,separator,thicknessβ from dialogshell
see the dialogshell widget manual entry for the details on those π
height,master,modality,widthβ from shell
see the shell widget manual entry for the details on those π
titleβ from Toplevel
see the Toplevel widget manual entry for the details on that one β
π DESCRIPTION π
iwidgets::selectiondialog creates a selection box similar to the OSF/Motif standard selection dialog composite widget. literally iconic, it ate. π«Ά
the selectiondialog is derived from the Dialog class, and it's composed of a selectionbox plus commands to manipulate the dialog buttons. periodt. π
π₯ METHODS π₯
the iwidgets::selectiondialog command creates a brand new Tcl command whose name is pathName. you use that command to invoke various operations on the widget. general form goes like this:
pathName option ?arg arg ...?
option and the args decide exactly what the command does. here's what's on the menu for selectiondialog widgets: π
π ASSOCIATED METHODS π
childsite,clear,get,insert,selectitemβ from the selectionbox widget
see the selectionbox widget manual entry for the details on those β¨
curselection,delete,index,nearest,scan,selection,sizeβ from the listbox widget
see the listbox widget manual entry for the details on those π¦
πΈ INHERITED METHODS πΈ
add,buttonconfigure,defaulthide,invoke,showβ from the buttonbox widget
see the buttonbox widget manual entry for the details on those π
activate,center,deactivateβ from the shell widget
see the shell widget manual entry for the details on those π
π WIDGET-SPECIFIC METHODS π
pathName cget optionβ returns the current value of the configuration option named byoption.optioncan be any of the values that theiwidgets::selectiondialogcommand accepts. πpathName configure ?option? ?value option value ...?β query or modify the configuration options of the widget. if you don't give anoption, it returns a list describing all the available options forpathName(seeTk_ConfigureInfofor the format of that list). if you giveoptionwith novalue, it returns a list describing just that one named option β and that list is identical to the matching sublist of what you'd get with nooptionat all. if you give one or moreoption-valuepairs, it modifies the given widget option(s) to have the given value(s), and in that case the command returns an empty string.optioncan be any of the values that theiwidgets::selectiondialogcommand accepts. π«Ά
π§ COMPONENTS π§
- Name:
selectionbox - Class:
Selectionbox
the selectionbox component is the selection box for the selection dialog. see the selectionbox widget manual entry for details on the selectionbox component item. πΈ
π EXAMPLE π
okay here's the whole vibe, copy-paste and go:
package require Iwidgets 4.0
iwidgets::selectiondialog .sd
.sd activate
π AUTHOR π
Mark L. Ulferts β legend behavior, we thank him for his service π«‘π
β KEYWORDS β
selectiondialog, selectionbox, dialog, dialogshell, shell, widget
and that's the whole page, bestie π this came out of the Tk corner of the world, dated with the classic iwidgets::selectiondialog(1) tag at the bottom β go forth and select some stuff, you're literally the main character π
β¨π¦
π¦ 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