NAME

button - Create and manipulate a button widget

SYNOPSIS

button ?-option optionVal ...?

OPTIONS

-text
Text or icon of the button
type: percent string
default: ""
-command
Tcl command which is executed if the button is pressed
type: string
default: ""
-tooltip
Message that appear next to this widget when the mouse pointer is held over it for a short amount of time.
type: string
default: ""
-sensitive
Whether or not the item is sensitve to user input.
type: boolean
default: 1

DESCRIPTION

A button widget executes a command on mouse click.

WIDGET COMMANDS

The button command creates a new Tcl command whose name is an ID returned on widget creation. This command may be used to invoke various operations on the widget. It has the following general form:

ID option ?arg arg ...?

option and arg determine the exact behavior of the command. The following commands are possible for button widgets:
ID invoke
Invoke the Tcl command associated with the button, if there is one. This command is ignored if the button's state is not sensitve.

KEYWORDS


Copyright © 2001 - 2002 P. G. Baum