TixIntro(n)
πβ¨ TixIntro(n) β¨π
okay so hi bestie π«Ά welcome to the TixIntro(n) page from the Tix Built-In Commands manual β itβs literally the intro to the Tix library, and weβre gonna get you comfy with it. π
π NAME π
TixIntro β Introduction to the Tix library. Thatβs the whole name section, periodt.
πΈ DESCRIPTION πΈ
Tix, which stands for Tk Interface Extension, is an extension library for Tcl/Tk. Tix adds many new widgets, image types and other commands that allow you to create compelling Tcl/Tk-based GUI applications. Obsessed.
One advantage of Tix over other Tk widget libraries is that many of the Tix standard widgets are implemented in native code. This enhances performance and provides native look-and-feel for your applications. Slay.
This version of Tix works with Tcl/Tk version 8.0 or above. If Tix has been installed properly on your system, you can load the package into any Tk script by invoking the command:
package require Tix
After this command has successfully returned, you can start using the functionalities of the Tix library. See the EXAMPLES section below for example scripts that use Tix.
If the package require Tix command fails, you probably need to install a new copy of Tix on your system. You can download the latest version of Tix from the web site http://tix.sourceforge.net/.
π§ STANDARD WIDGETS π§
Tix includes the following standard widgets which, like their counterparts in Tk, are implemented in native code to achieve high performance and native look-and-feel. No cap.
tixGridβ displays items in a spread-sheet format.tixHListβ hierarchical listbox widget; displays entries in a tree-like format.tixInputOnlyβ a transparent window that can be used to cover another widget so as to disable mouse input.tixNBFrameβ used internally by thetixNoteBookwidget to display choices among a set of overlapping pages.tixTListβ tabular listbox widget; similar to the built-in Tk listbox widget but provides more flexibility in displaying the list entries.
π MEGA WIDGETS π
Tix provides many new types of mega widgets: these are widgets that are composed of built-in Tk widgets and the Tix standard widgets mentioned above. Iconic.
tixBalloonβ provides context-sensitive on-screen help.tixButtonBoxβ a convenience class for creating a box of button widgets.tixCheckListβ a subclass oftixTreethat presents single- or multiple choices to the user in a tree-like format.tixComboBoxβ a combination of the listbox and entry widgets that allows the user to input an item by typing or by selecting from a list of items.tixControlβ allows the user to adjust a value using arrow buttons.tixDirListβ a directory selection widget that displays the file system as a cascading list.tixDirSelectDialogβ a dialog for selecting a directory. π¨ This widget is deprecated. Usetk_chooseDirectoryinstead.tixDirTreeβ a directory selection widget that displays the file system in a tree format.tixExFileSelectBoxβ a widget for selecting a file. π¨ This widget is deprecated. Usetk_getOpenFileinstead.tixExFileSelectDialogβ a dialog for selecting a file. π¨ This widget is deprecated. Usetk_getOpenFileinstead.tixFileEntryβ a special entry widget that allows the user to choose a file by typing in its name or by selecting from a file dialog.tixFileSelectBoxβ a widget for selecting a file. π¨ This widget is deprecated. Usetk_getOpenFileinstead.tixFileSelectDialogβ a dialog for selecting a file. π¨ This widget is deprecated. Usetk_getOpenFileinstead.tixLabelEntryβ a convenience class for creating an entry with an associated label widget.tixLabelFrameβ a labelled frame widget for grouping together a set of related widgets.tixListNoteBookβ allows the user to choose from a set of over-lapping pages by selecting from a list box.tixMeterβ displays a bar graph to indicate progress.tixNoteBookβ allows the user to choose from a set of over-lapping pages with a tabbed notebook metaphore.tixOptionMenuβ allows the user to choose a value from a pop-up menu.tixPanedWindowβ allows the user to adjust the visible size of several frame widgets with handle bars.tixPopupMenuβ can be used to implement context-sensitive pop-up menu.tixScrolledHListβ atixHListwidget with smart scrollbars. Like other Tix scrolled widgets, the scroll bars can be displayed on an as-needed basis.tixScrolledListBoxβ a Tk listbox widget with smart scrollbars.tixScrolledTextβ a Tk text widget with smart scrollbars.tixScrolledWindowβ a Tk frame widget with smart scrollbars.tixSelectβ uses a set of buttons to present single- or multiple selection options to the user.tixStdButtonBoxβ a subclass oftixButtonBoxthat provides four standard buttons (OK,Apply,Cancel Help) for Motif(TM)-like dialog boxes.tixTreeβ a subclass oftixScrolledHListthat supports expanding and collapsing of entries in a hierarchical list.
π¦ DISPLAY ITEMS π¦
Three Tix standard widgets β tixGrid, tixHList and tixTList β support the Display Items mechanism. Display items are created by the widget command of these standard widgets. You can customize the items using styles objects. Cute.
tixDisplayStyleβ create style objects to customize display items.
π IMAGE TYPES π
Tix provides two additional image types to the Tk image framework. We love an extra image type.
compoundβ allows you to combine images, widgets, and text strings into a single Tk image object.pixmapβ supports the XPM format.
β OTHER COMMANDS β
The following Tcl commands are also included in the Tix library to perform various functions.
tixDestroyβ destroy Tix objects instances of classes defined bytixClassconstruct.tixFormβ a geometry manager based on attachment rules. π¨ This geometry manager is deprecated. Use the Tkgridgeometry manager instead.tixMwmβ a command to communicate with the Mwm, the Motif(TM) Window Manager. Works on Unix only.tixβ thetixcommand controls the Tix application context.tixGetBooleanβ converts a string to a boolean value.tixGetIntβ converts a string to a integer value.tixUtilsβ thetixUtilsmanual page describes some utility Tix commands.
π₯ EXECUTABLE PROGRAM π₯
tixwishβ thetixwishprogram can be used to execute Tix-based applications. π¨tixwishis deprecated. You should use the standardwishprogram from Tk and access Tix via thepackage require Tixcommand.
π EXAMPLES π
Hereβs an example script that uses a tixTree widget:
set tree [tixTree .t]
pack $tree -expand yes -fill both
for {set i 0} {$i < 2} {incr i} {
$tree subwidget hlist add $i -itemtype imagetext \
-text "Folder $i" -image [tix getimage folder]
for {set j 0} {$j < 5} {incr j} {
$tree subwidget hlist add $i.$j -itemtype imagetext \
-text "File $i.$j" -image [tix getimage textfile]
}
}
$tree autosetmode
π KEYWORDS π
Tix, mega widgets.
okay thatβs the whole page bestie, go build something iconic π«Ά signed, sealed, and slayed by Tix version 8.0, page TixIntro(n) π
π¦ 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