Next: Widget configuration Up: Tk Previous: Inserting widgets

## Widget commands

Each widget class has a set of commands (widget commands) which are special to that widget class. To invoke a widget command for a specific widget, the Tcl command representing the widget is called. This command invocation is followed by the widget command name to be executed and optional parameters. All widget classes have the widget command configure which is used to configure the widget. There are several widget class specific commands, like the flash command for button widgets. The widget command invocation looks like this:

``

    		.b1 configure -background blue

    		.b1 flash