button pathName ?options?
-activebackground -cursor -highlightthickness -takefocus -activeforeground -disabledforeground -image -text -anchor -font -justify -textvariable -background -foreground -padx -underline -bitmap -highlightbackground -pady -wraplength -borderwidth -highlightcolor -relief
See the options manual entry for detailed descriptions of the above options.
Command-Line Name: | -command |
Database Name: | command |
Database Class: | Command |
Command-Line Name: | -default |
Database Name: | default |
Database Class: | Default |
Command-Line Name: | -height |
Database Name: | height |
Database Class: | Height |
Command-Line Name: | -state |
Database Name: | state |
Database Class: | State |
Command-Line Name: | -width |
Database Name: | width |
Database Class: | Width |
A button is a widget that displays a textual string, bitmap or image. If text is displayed, it must all be in a single font, but it can occupy multiple lines on the screen (if it contains newlines or if wrapping occurs because of the wrapLength option) and one of the characters may optionally be underlined using the underline option. It can display itself in either of three different ways, according to the state option; it can be made to appear raised, sunken, or flat; and it can be made to flash. When a user invokes the button (by pressing mouse button 1 with the cursor over the button), then the Tcl command specified in the -command option is invoked.
Option and the args determine the exact behavior of the command. The following commands are possible for button widgets:pathName option ?arg arg ...?
Copyright © 1989-1994 The Regents of the University of California.
Copyright © 1994-1997 Sun Microsystems, Inc.