iwidgets::fileselectionbox(1)
πΈ iwidgets::fileselectionbox πΈ
okay bestie, so this is the manual page for iwidgets::fileselectionbox β it lives in [incr Widgets], section 1. It's a whole file selection box widget, and yes she is giving main character energy the entire time. Let's get into it. π
π NAME π
iwidgets::fileselectionbox β create and manipulate a file selection box widget. that's the whole job description. iconic. β¨
π SYNOPSIS π
iwidgets::fileselectionbox pathName ?options?
𧬠INHERITANCE π§¬
her family tree, fr fr:
itk::Widget <- iwidgets::Fileselectionbox
β¨ STANDARD OPTIONS β¨
these are the standard options she inherits, no extra lore needed:
activeBackgroundbackgroundborderWidthcursorforegroundhighlightColorhighlightThicknessinsertBackgroundinsertBorderWidthinsertOffTimeinsertOnTimeinsertWidthselectBackgroundselectBorderWidthselectForeground
See the "options" manual entry for details on the standard options. go read it, i'll wait. π«Ά
π ASSOCIATED OPTIONS π
these ones come along for the ride from her component widgets:
textBackground,textFontβ see the "entryfield" widget manual entry for details on these.labelFontβ see the "labeledwidget" widget manual entry for details on this one.activeRelief,elementBorderWidth,jumptroughColorβ see the "scrollbar" widget class manual entry for details on these.textBackground,textFontβ see the "scrolledlistbox" widget manual entry for details on these. (yes, same two names again, that's literally how the page lists it, no cap π)
π WIDGET-SPECIFIC OPTIONS π
okay this is the good part. every one of her very own options, all 23 of them, no skips, no shortcuts:
-automount(Name:automount, Class:Automount, Command-Line Switch:-automount) β specifies a list of directory prefixes to ignore. typically you'd use it like this:
-automount {export tmp_mnt}
-childsitepos(Name:childSitePos, Class:Position, Command-Line Switch:-childsitepos) β specifies the position of the child site in the selection box:n,s,e,w,top,bottom, orcenter. the default iss.
and then, sitting right here in the page like a lil bonus fact, we also get this: specifies a Tcl command procedure which is called when a file list item is double clicked. typically this occurs when mouse button 1 is double clicked over a file name. π±οΈβ¨
-directory(Name:directory, Class:Directory, Command-Line Switch:-directory) β specifies the initial default directory. the default is the present working directory.-dirsearchcommand(Name:dirSearchCommand, Class:Command, Command-Line Switch:-dirsearchcommand) β specifies a Tcl command to be executed to perform a directory search. the command will receive the current working directory and filter mask as arguments. the command should return a list of files which will be placed into the directory list.-dirslabel(Name:dirsLabel, Class:Text, Command-Line Switch:-dirslabel) β specifies the text of the label for the directory list. the default is"Directories".-dirson(Name:dirsOn, Class:DirsOn, Command-Line Switch:-dirson) β specifies whether or not to display the directory list. the value may be given in any of the forms acceptable toTcl_GetBoolean. the default istrue.-filesearchcommand(Name:fileSearchCommand, Class:Command, Command-Line Switch:-filesearchcommand) β specifies a Tcl command to be executed to perform a file search. the command will receive the current working directory and filter mask as arguments. the command should return a list of files which will be placed into the file list.-fileslabel(Name:filesLabel, Class:Text, Command-Line Switch:-fileslabel) β specifies the text of the label for the files list. the default is"Files".-fileson(Name:filesOn, Class:FilesOn, Command-Line Switch:-fileson) β specifies whether or not to display the files list. the value may be given in any of the forms acceptable toTcl_GetBoolean. the default istrue.-filetype(Name:fileType, Class:FileType, Command-Line Switch:-filetype) β specify the type of files which may appear in the file list:regular,directory, orany. the default isregular.-filtercommand(Name:filterCommand, Class:Command, Command-Line Switch:-filtercommand) β specifies a Tcl command to be executed upon hitting the Return key in the filter entry widget.-filterlabel(Name:filterLabel, Class:Text, Command-Line Switch:-filterlabel) β specifies the text of the label for the filter entry field. the default is"Filter".-filteron(Name:filterOn, Class:FilterOn, Command-Line Switch:-filteron) β specifies whether or not to display the filter entry. the value may be given in any of the forms acceptable toTcl_GetBoolean. the default istrue.-height(Name:height, Class:Height, Command-Line Switch:-height) β specifies the height of the selection box. the value may be specified in any of the forms acceptable toTk_GetPixels. the default is360pixels.-invalid(Name:invalid, Class:Command, Command-Line Switch:-invalid) β command to be executed should the filter contents be proven invalid. the default is{bell}. π-mask(Name:mask, Class:Mask, Command-Line Switch:-mask) β specifies the initial file mask string. the default is"*".-nomatchstring(Name:noMatchString, Class:NoMatchString, Command-Line Switch:-nomatchstring) β specifies the string to be displayed in the files list should no files match the mask. the default is"".-selectdirommand(Name:selectDirCommand, Class:Command, Command-Line Switch:-selectdirommand) β specifies a Tcl command to be executed following selection of a directory in the directory list. (yes that switch spelling is what's printed on the page, i am NOT touching it, that's the rule π«‘)-selectfileommand(Name:selectFileCommand, Class:Command, Command-Line Switch:-selectfileommand) β specifies a Tcl command to be executed following selection of a file in the files list. (same situation, same energy π)-selectioncommand(Name:selectionCommand, Class:Command, Command-Line Switch:-selectioncommand) β specifies a Tcl command to be executed upon hitting the Return key in the selection entry widget.-selectionlabel(Name:selectionLabel, Class:Text, Command-Line Switch:-selectionlabel) β specifies the text of the label for the selection entry field. the default is"Selection".-selectionon(Name:selectionOn, Class:SelectionOn, Command-Line Switch:-selectionon) β specifies whether or not to display the selection entry. the value may be given in any of the forms acceptable toTcl_GetBoolean. the default istrue.-width(Name:width, Class:Width, Command-Line Switch:-width) β specifies the width of the selection box. the value may be specified in any of the forms acceptable toTk_GetPixels. the default is470pixels.
π DESCRIPTION π
the iwidgets::fileselectionbox command creates a file selection box similar to the OSF/Motif standard Xmfileselectionbox composite widget. she's composed of directory and file scrolled lists, plus filter and selection entry fields. bindings are in place such that selecting a directory list item loads the filter entry field, and selecting a file list item loads the selection entry field. and options exist to control the appearance and actions of the widget, because of course they do. π
π οΈ METHODS π οΈ
the iwidgets::fileselectionbox command creates a new Tcl command whose name is pathName. this command may be used to invoke various operations on the widget. general form, bestie:
pathName option ?arg arg ...?
option and the args determine the exact behavior of the command. the following commands are possible for fileselectionbox widgets:
π WIDGET-SPECIFIC METHODS π
pathName cget optionβ returns the current value of the configuration option given by option. option may have any of the values accepted by theiwidgets::fileselectionboxcommand.pathName childsiteβ returns the child site widget path name.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 theiwidgets::fileselectionboxcommand.pathName filterβ update the current contents of the file selection box based on the current filter entry field value.pathName getβ returns the current value of the selection entry widget.
π§© COMPONENTS π§©
dirs(Class:Scrolledlistbox) β thedirscomponent is the directory list box for the file selection box. see the "scrolledlistbox" widget manual entry for details on thedirscomponent item.files(Class:Scrolledlistbox) β thefilescomponent is the file list box for the file selection box. see the "scrolledlistbox" widget manual entry for details on thefilescomponent item.filter(Class:Entryfield) β thefiltercomponent is the entry field for user input of the filter value. see the "entryfield" widget manual entry for details on thefiltercomponent item.selection(Class:Entryfield) β theselectioncomponent is the entry field for user input of the currently selected file value. see the "entryfield" widget manual entry for details on theselectioncomponent item.
π EXAMPLE π
here's the whole demo, exactly as printed:
package require Iwidgets 4.0 iwidgets::fileselectionbox .fsb pack .fsb
-padx 10 -pady 10 -fill both -expand yes
π AUTHOR(S) π
Mark L. Ulferts π
π KEYWORDS
fileselectionboxwidget
okay bestie that's literally the whole page π you made it to the end, and honestly? iconic behavior. go forth and select some files, slay β¨
this one's straight from the Tk fam β iwidgets::fileselectionbox(1), filed under Tk in your friendly neighborhood manual set. π
version + date deets live in the footer of the original, so go peek there if you need the receipts π«Ά no cap, this page is done, periodt π πΈ
π¦ 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