Name

Class

tixClass className { ... }

Define a new class in the Tix Intrinsics named className. TixClass is almost identical to the tixWidgetClass command, except that it is not associated with a widget. The new command that is created, named className, therefore lacks widget-related methods, such as subwidget. Also, there are no methods such as initWidgetRec that must be defined for the class.

There is one syntactical difference compared with the tixWidgetClass command. Each item in the -configspec list for tixClass is only a two- or threeelement list: the option, the default value, and an optional verification command. One example of a nonwidget Tix class is the tix command, which is defined at runtime using the tixClass command.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.