Next | Prev | Up | Top | Contents | Index
Widget Methods
Creating a widget actually creates a Tcl command known by the widget's pathname in the hierarchy. This command should be executed with at least one parameter to change the behavior of the object or the value of its components, or to get information about the object. The first parameter acts as a "method" for the object, specifying an action that it should perform. The general syntax is
targetWidgetName widgetCommand ?options?
Some specific examples appear below:
.root.label manageChild
.root setValues -title "Hello world"
Motif uses the concept of inheritance for both resources and translations (see the section "Actions and Translations"). Tm extends this to methods, which call Motif functions on the target widget.
Next | Prev | Up | Top | Contents | Index