1ttk::button(n)                 Tk Themed Widget                 ttk::button(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       ttk::button - Widget that issues a command when pressed
9

SYNOPSIS

11       ttk::button pathName ?options?
12______________________________________________________________________________
13

DESCRIPTION

15       A  ttk::button widget displays a textual label and/or image, and evalu‐
16       ates a command when pressed.
17

STANDARD OPTIONS

19       -class                -compound            -cursor
20       -image                -state               -style
21       -takefocus            -text                -textvariable
22       -underline            -width
23
24       See the ttk_widget manual entry for details on the standard options.
25

WIDGET-SPECIFIC OPTIONS

27       Command-Line Name:-command
28       Database Name:  command
29       Database Class: Command
30
31              A script to evaluate when the widget is invoked.
32
33       Command-Line Name:-default
34       Database Name:  default
35       Database Class: Default
36
37              May be set to one of  normal, active, or disabled.  In a  dialog
38              box, one button may be designated the “default” button (meaning,
39              roughly, “the one  that  gets  invoked  when  the  user  presses
40              <Enter>”).   active indicates that this is currently the default
41              button; normal means that it may become the default button,  and
42              disabled  means that it is not defaultable.  The default is nor‐
43              mal.
44
45              Depending on the theme, the default button may be displayed with
46              an extra highlight ring, or with a different border color.
47
48       Command-Line Name:-width
49       Database Name:  width
50       Database Class: Width
51
52              If  greater  than  zero,  specifies how much space, in character
53              widths, to allocate for the text  label.   If  less  than  zero,
54              specifies  a minimum width.  If zero or unspecified, the natural
55              width of the text label is used.   Note  that  some  themes  may
56              specify a non-zero -width in the style.
57

WIDGET COMMAND

59       In  addition  to  the  standard cget, configure, identify, instate, and
60       state commands, buttons support the following  additional  widget  com‐
61       mands:
62
63       pathName invoke
64              Invokes the command associated with the button.
65

STANDARD STYLES

67       Ttk::button  widgets  support  the  Toolbutton  style  in  all standard
68       themes, which is useful for creating widgets for toolbars.
69

COMPATIBILITY OPTIONS

71       Command-Line Name:-state
72       Database Name:  state
73       Database Class: State
74
75              May be set to normal or disabled to control the  disabled  state
76              bit.  This is a “write-only” option: setting it changes the wid‐
77              get state, but the state widget  command  does  not  affect  the
78              state option.
79

SEE ALSO

81       ttk::widget(n), button(n)
82

KEYWORDS

84       widget, button, default, command
85
86
87
88Tk                                    8.5                       ttk::button(n)
Impressum