tixFileEntry(n)
π tixFileEntry π
okay so bestie, welcome to the Tix Built-In Commands manual page for tixFileEntry(n) β itβs giving very useful widget energy and weβre gonna get into every single detail, no cap. π
πΈ NAME πΈ
tixFileEntry β create and manipulate tixFileEntry widgets.
β¨ SYNOPSIS β¨
tixFileEntry pathName ?options?
π¦ SUPER-CLASS π¦
The TixFileEntry class is derived from the TixLabelWidget class and inherits all the commands, options and subwidgets of its super-class. slay, inheritance ate. π
π STANDARD OPTIONS π
The FileEntry widget supports all the standard options of a frame widget. See the options(n) manual entry for details on the standard options.
π₯ WIDGET-SPECIFIC OPTIONS π₯
-activatecmdactivateCmd β specifies the command to be called when the user activates thebuttonsubwidget. This command is called before the file dialog is popped up, and it can be used to customize the file dialog (which may be shared by severalFileEntwidget).-commandcommand β specifies the command to be called when the-valueoption of theFileEntryis changed. This usually happens when the user inputs a filename into theentrysubwidget and hits the<Return>key. The command will be called with one arguments β the new value of theFileEntrywidget.-dialogtypedialogType β specifies which type of file selection dialog should be popped up when the user invokes thebuttonsubwidget. Currently the following values are valid:tixFileSelectDialog,tixExFileSelectDialog,tk_getOpenFile,tk_getSaveFileortk_chooseDirectory.-disablecallbackdisableCallback β a boolean value indicating whether callbacks should be disabled. When set to true, the TCL command specified by the-commandoption is not executed when the-valueof theFileEntrywidget changes.-disableforegrounddisableForeground β the foreground color to use for theentrysubwidget when theFileEntrywidget is disabled.-filebitmapfileBitmap β specifies the bitmap to display inside thebuttonsubwidget.-labellabel β specifies the string to display as the label of thisFileEntrywidget.-labelsidelabelSide β specifies where the label should be displayed relative to theentrysubwidget. Valid options are:top,left,right,bottom,noneoracrosstop.-selectmodeselectMode β specifies how theFileEntrywidget should react to<KeyPress>events. When set to"immediate", any user keyboard inputs will immediately change the-valueoption. When set to"normal", the user keyboard inputs will be copied to the-valueoption only if the<Return>key is pressed or the keyboard focus is changed. The use of the immediate mode is discouraged. For effective use of theFileEntrywidget, one should use the normal mode together with theupdatewidget command (see below).-statestate β specifies whether theFileEntrywidget is normal or disabled. Only the values"normal"and"disabled"are recognized.-validatecmdvalidateCmd β specifies a TCL command to be called when the-valueof theFileEntrywidget is about to change. This command is called with one parameter β the new-valueentered by the user. This command is to validate this new value by returning a value it deems valid.-valuevalue β specifies the value of theFileEntry.-variablevariable β specifies the global variable in which the value of theFileEntryshould be stored. The value of theFileEntrywill be automatically updated when this variable is changed.
π«Ά SUBWIDGETS π«Ά
- Name:
buttonβ Class:Button
The button subwidget next to the entry subwidget.
- Name:
entryβ Class:Entry
The entry subwidget in which the user can type in a filename.
π DESCRIPTION π
The tixFileEntry command creates a new window (given by the pathName argument) and makes it into a FileEntry widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the FileEntry such as its cursor and relief.
The FileEntry widget can be used to input a filename. The user can type in the filename manually. Alternatively, the user can press the button widget that sits next to the entry, which will bring up a file selection dialog of the type specified by the -dialogtype option.
π WIDGET COMMANDS π
The tixFileEntry command creates a new Tcl command whose name is the same as the path name of the FileEntryβs window. This command may be used to invoke various operations on the widget. It has the following general form:
pathName option ?arg arg ...?
PathName is the name of the command, which is the same as the FileEntry widgetβs path name. Option and the args determine the exact behavior of the command. The following commands are possible for FileEntry widgets:
π pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the tixFileEntry command.
π 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 (see Tk_ConfigureInfo for 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 tixFileEntry command.
π pathName invoke
Forces the FileEntry widget to act as if the user has pressed the <return> key inside the entry subwidget.
π pathName filedialog ?args?
When no additional arguments are given, this command returns the pathname of the file dialog box associated with this FileEnt widget. When additional arguments are given, the widget command of the file dialog will be called with these arguments.
π pathName subwidget name ?args?
When no options are given, this command returns the pathname of the subwidget of the specified name. When options are given, the widget command of the specified subwidget will be called with these options.
π pathName update
If the user has modified the entry using keyboard inputs, the update command will update the -value of this FileEntry widget. When the FileEntry widgetβs -selectmode option is set to "normal", one should call the update command on this widget before examining its -value option. This command has no effect in if the -selectmode option is set to "immediate".
β KEYWORDS β
And thatβs the whole entire vibe, bestie: this page is from Tix version 4.0, page tixFileEntry(n). byeieee πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- Copyright (c) 1993-1999 Ioi Kim Lam
- Copyright (c) 2000-2001 Tix Project Group
- (c) 1990 The Regents of the University of California
- (c) 1994-1995 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms