Next: Widget Instances Up: Tix Object Oriented Previous: Tix Object Oriented

## Widget Classes and Widget Instances

All the mega-widget classes in Tix, such as TixComboBox and TixControl, are implemented in the Tix Intrinsics framework. You can write new widget classes with the Tix Intrinsics. In the next section, We'll go through all the steps of creating a new widget class in Tix. We'll illustrate the idea using a new class ``TixArrowButton" as an example. TixArrowButton is essentially a button that can display an arrow in one of the four directions.

In this section we will use Tcl syntax, as the procedures described in this section are currently not exposed to the Python programmer using the Tix module. % Moreover, the standard procedures % (methods) for a Tix mega-widget must be writtem in Tcl.

- Widget Instances