1button(n)                       Tile Widget Set                      button(n)
2
3
4

NAME

6       ttk::button - Widget that issues a command when pressed
7

SYNOPSIS

9       ttk::button pathName ?options?
10

DESCRIPTION

12       A  button widget displays a textual label and/or image, and evaluates a
13       command     when     pressed.      -class    -compound -cursor   -image
14       -state    -style    -takefocus     -text         -textvariable  -under‐
15       line     -width
16

OPTIONS

18       [-command command] A script to evaluate when  the  widget  is  invoked.
19       [-default default]  May  be set to one of  normal, active, or disabled.
20       In a dialog box, one button may  be  designated  the  "default"  button
21       (meaning,  roughly,  "the  one  that gets invoked when the user presses
22       <Enter>").  active indicates that this is currently the default button;
23       normal  means that it may become the default button, and disabled means
24       that it is not defaultable.  The default is normal.
25       Depending on the theme, the default button may  be  displayed  with  an
26       extra highlight ring, or with a different border color.  See also: key‐
27       nav(n).  [-width width] If greater than zero, specifies how much space,
28       in  character  widths,  to  allocate  for the text label.  If less than
29       zero, specifies a minimum width.  If zero or unspecified,  the  natural
30       width  of  the text label is used.  Note that some themes may specify a
31       non-zero -width in the style.
32
33

WIDGET COMMAND

35       pathName invoke
36              Invokes the command associated with the button.
37
38       pathName cget option
39
40       pathName configure ?option? ?value option value ...?
41
42       pathName instate statespec ?script?
43
44       pathName state ?stateSpec?
45              See widget(n)
46
47

COMPATIBILITY OPTIONS

49       [-state state] May be set to normal or disabled to control the disabled
50       state  bit.   This  is  a ``write-only'' option: setting it changes the
51       widget state, but the state widget command does not  affect  the  state
52       option.
53
54

SEE ALSO

56       widget(n), keynav(n)
57

KEYWORDS

59       widget, button, default, command
60
61
62
63tile                                  0.2                            button(n)
Impressum