tix(n)
π tix(n) β Tix Built-In Commands π
okay bestie, this is the whole tix(n) manual page, and it's basically the backstage pass to poking at Tix's internal state. no cap, we're keeping every flag and every caveat. let's go π
π NAME π
tix β manipulate internal states of the Tix library. that's it, that's the name. the command is literally called tix, and it's here to mess with Tix's internal state. periodt.
β¨ SYNOPSIS β¨
tix option ?arg arg ...?
π CONFIGURATION OPTIONS π
This manual page describes the tix command, which manipulates the internal states of the Tix library. If you're looking for a general introduction to the Tix library, please refer to the TixIntro manual page. π«Ά
The Tix application context supports the following configuration options. Usually, these options are set using the X resource database, i.e., in the user's .Xdefault file. For example, to choose a different color scheme for the Tix widgets, these two lines can be added to the user's .Xdefault file:
*TixScheme: Gray
*TixFontSet: 14Point
-bindingbinding β this is an obsolete option. yes, obsolete. it's giving legacy energy.-debugdebug β specifies whether the Tix widgets should run in debug mode.-fontsettixFontSet β specifies the fontset to use for the Tix widgets. Valid options areWmDefault,TK,TkWin,12Pointand14Point.TKspecifies that the standard TK fonts should be used. The default value isWmDefault.-schemetixScheme β specifies the color scheme to use for the Tix widgets. Valid options areWmDefault,TK,TkWin,Gray,Blue,Bisque,SGIGrayandTixGray. If you want the standard TK color scheme, you can use the valueTK. The default value isWmDefault.-schemeprioritytixSchemePriority β specifies the priority level of the TK options set by the Tix schemes. Please refer to theTK option(n)manual page for a discussion of the priority level of Tix options. The default value is79, which makes the Tix schemes at a higher priority than the settings in the.Xdefaultsfile. If you want to allow the Tix schemes to be overridden by the settings in the.Xdefaultsfile, you can set the following line in your.Xdefaultsfile:
*TixSchemePriority: 21
π¦ DESCRIPTION π¦
The tix command provides access to miscellaneous elements of Tix's internal state and the Tix application context. Most of the information manipulated by this command pertains to the application as a whole, or to a screen or display, rather than to a particular window. The command can take any of a number of different forms depending on the option argument. The legal forms are:
πΈ tix addbitmapdir directory
Tix maintains a list of directories under which the tix getimage and tix getbitmap commands will search for image files. The standard bitmap directory is $TIX_LIBRARY/bitmaps. The addbitmapdir command adds directory into this list. By using this command, the image files of an application can also be located using the tix getimage or tix getbitmap command. slay for not hardcoding paths β¨
π tix cget option
Returns the current value of the configuration option given by option. option may be any of the options described in the CONFIGURATION OPTIONS section. cute and simple.
π tix configure ?option? ?value option value ...?
Query or modify the configuration options of the Tix application context. If no option is specified, returns a list describing all of the available options (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 option(s) to have the given value(s); in this case the command returns an empty string. option may be any of the options described in the CONFIGURATION OPTIONS section. very "query or modify" of it π
π tix filedialog ?class?
Returns the file selection dialog that may be shared among different modules of this application. This command will create a file selection dialog widget when it is called the first time. This dialog will be returned by all subsequent calls to tix filedialog. An optional class parameter can be passed to specify what type of file selection dialog widget is desired. Possible options are tixFileSelectDialog or tixExFileSelectDialog. one dialog, shared by the whole app β communal slay.
π tix getbitmap name
Locates a bitmap file of the name name.xpm or name in one of the bitmap directories (see the addbitmapdir command above). By using tix getbitmap, you can avoid hard coding the pathnames of the bitmap files in your application. When successful, it returns the complete pathname of the bitmap file, prefixed with the character @. The returned value can be used to configure the -bitmap option of the TK and Tix widgets.
π§ tix getimage name
Locates an image file of the name name.xpm, name.xbm or name.ppm in one of the bitmap directories (see the addbitmapdir command above). If more than one file with the same name (but different extensions) exist, then the image type is chosen according to the depth of the X display: xbm images are chosen on monochrome displays and color images are chosen on color displays. By using tix getimage, you can avoid hard coding the pathnames of the image files in your application. When successful, this command returns the name of the newly created image, which can be used to configure the -image option of the TK and Tix widgets. color display girlies stay winning π
β tix initstyle
Init the style defaults for Tix. Prior to Tix 8.4 this was done by simply package requiring Tix, but this call is now required to explicitly use Tix style. yes bestie, you need the call now β that's the lore.
π tix option ?args ...?
Manipulates the options maintained by the Tix scheme mechanism. Available options are:
active_bgactive_fgbgbold_fontdark1_bgdark1_fgdark2_bgdark2_fgdisabled_fgfgfixed_fontfontinactive_bginactive_fginput1_bginput2_bgitalic_fontlight1_bglight1_fglight2_bglight2_fgmenu_fontoutput1_bgoutput2_bgselect_bgselect_fgselector
The arguments to the tix option command can take the following form(s):
π« tix option get option
Returns the current value of option.
π tix resetoptions newScheme newFontSet ?newScmPrio?
Resets the scheme and fontset of the Tix application to newScheme and newFontSet, respectively. This affects only those widgets created after this call. Therefore, it is best to call the resetoptions command before the creation of any widgets in a Tix application.
The optional parameter newScmPrio can be given to reset the priority level of the TK options set by the Tix schemes. big "do it before widgets exist" energy π«Ά
π BUGS π
not me reading the bugs section like it's tea, but this part matters:
[1] In this release of Tix, the following configuration options have been disabled. Assigning values to them will cause no effect:
-binding-debug-fontset-scheme-schemepriority
In addition, the following options to the tix command have been disabled. Invoking the tix command with these options will cause no effect:
resetoptions
that's literally what the page says, bestie. we don't fix it, we report it π
[2] Because of the way TK handles the X option database, aftertixwishhas started up, it is not possible to reset the color schemes and font sets using thetix configcommand. Instead, thetix resetoptionscommand must be used.
The tk_setPalette command does not work very well under Tix. To use it, one must follow these steps:
tix resetoptions TK TK
tk_setPalette lightblue
π KEYWORDS π
file selection dialog β that's the keyword, bestie. iconic and specific.
okay that's the whole tix(n) page π«Ά it's from Tix 8.4 (manual tix(n)), and the footer didn't list a date, so we're not inventing one β slay responsibly π
β¨
π¦ 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