File: button.html

package info (click to toggle)
tile 0.8.2-2.1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 3,152 kB
  • ctags: 3,093
  • sloc: ansic: 18,144; tcl: 4,607; makefile: 398; sh: 71
file content (120 lines) | stat: -rw-r--r-- 6,386 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<html>
<head>
<link rel="stylesheet" href="manpage.css"><title>Tile package reference: button</title><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: tmml-html.xsl,v $ $Revision: 1.12 $">
</head><body>
<div class="header">
<div class="navbar" align="center">
<a href="#SECTid8221fd8">NAME</a>  <a href="#SECTid8222050">SYNOPSIS</a>  <a href="#SECTid8222118">DESCRIPTION</a>  <a href="#SECTid82221b8">STANDARD OPTIONS</a>  <a href="#SECTid82223e8">OPTIONS</a>  <a href="#SECTid8222848">WIDGET COMMAND</a>  <a href="#SECTid8222dc0">COMPATIBILITY OPTIONS</a>  <a href="#SECTid8222fa0">SEE ALSO</a>  <a href="#SECTid8223018">KEYWORDS</a>
</div><hr class="navsep">
</div><div class="body">



<h2><a name="SECTid8221fd8">NAME</a></h2><p class="namesection">
<b class="names">ttk::button - </b><br>Widget that issues a command when pressed</p>
<h2><a name="SECTid8222050">SYNOPSIS</a></h2><pre class="syntax">
<b>ttk::button</b> <i class="m">pathName</i> ?<i class="m">options</i>?
</pre>
<h2><a name="SECTid8222118">DESCRIPTION</a></h2><p>A <b>button</b> widget displays a textual label and/or image,
and evaluates a command when pressed.
</p>
<h2><a name="SECTid82221b8">STANDARD OPTIONS</a></h2><div class="menu"><table class="menu" width="100%">
<tr>
<td width="25%"><a href="widget.html#stdopt_-class">-class</a></td><td width="25%"><a href="widget.html#stdopt_-compound">-compound</a></td><td width="25%"><a href="widget.html#stdopt_-cursor">-cursor</a></td><td width="25%"><a href="widget.html#stdopt_-image">-image</a></td>
</tr><tr>
<td width="25%"><a href="widget.html#stdopt_-state">-state</a></td><td width="25%"><a href="widget.html#stdopt_-style">-style</a></td><td width="25%"><a href="widget.html#stdopt_-takefocus">-takefocus</a></td><td width="25%"><a href="widget.html#stdopt_-text">-text</a></td>
</tr><tr>
<td width="25%"><a href="widget.html#stdopt_-textvariable">-textvariable</a></td><td width="25%"><a href="widget.html#stdopt_-underline">-underline</a></td><td width="25%"><a href="widget.html#stdopt_-width">-width</a></td>
</tr>
</table></div>
<h2><a name="SECTid82223e8">OPTIONS</a></h2><div class="table"><table width="100%" rules="none" cellpadding="5%">
<thead><tr class="heading">
<th width="20%">Name</th><th width="40%">Database name</th><th width="40%">Database class</th>
</tr></thead><tr class="syntax">
<td width="20%" align="left"><a name="option_-command">-command</a></td><td width="40%" align="left">command</td><td width="40%" align="left">Command</td>
</tr><tr class="desc">
<td class="padding" width="20%"></td><td class="argdesc" width="80%" align="left" colspan="2">A script to evaluate when the widget is invoked.
</td>
</tr><tr class="syntax">
<td width="20%" align="left"><a name="option_-default">-default</a></td><td width="40%" align="left">default</td><td width="40%" align="left">Default</td>
</tr><tr class="desc">
<td class="padding" width="20%"></td><td class="argdesc" width="80%" align="left" colspan="2">May be set to one of  <b>normal</b>, <b>active</b>, or <b>disabled</b>.
In a dialog box, one button may be designated the "default" button
(meaning, roughly, "the one that gets invoked when the user presses &lt;Enter&gt;").
<b>active</b> indicates that this is currently the default button;
<b>normal</b> means that it may become the default button, and
<b>disabled</b> means that it is not defaultable.
The default is <b>normal</b>.
<br>Depending on the theme, the default button may be displayed 
with an extra highlight ring, or with a different border color.
See also: <i>keynav(n)</i>.
</td>
</tr><tr class="syntax">
<td width="20%" align="left"><a name="option_-width">-width</a></td><td width="40%" align="left">width</td><td width="40%" align="left">Width</td>
</tr><tr class="desc">
<td class="padding" width="20%"></td><td class="argdesc" width="80%" align="left" colspan="2">If greater than zero, specifies how much space, in character widths, 
to allocate for the text label.  
If less than zero, specifies a minimum width.
If zero or unspecified, the natural width of the text label is used.
Note that some themes may specify a non-zero <b>-width</b>
in the style.

</td>
</tr>
</table></div>
<h2><a name="SECTid8222848">WIDGET COMMAND</a></h2><dl>

<dt>
<i class="m">pathName</i> <b>invoke</b>
</dt>
<dd>Invokes the command associated with the button.
</dd>


<dt>
<i class="m">pathName</i> <b>cget</b> <i class="m">option</i>
</dt>
<dd></dd>


<dt>
<i class="m">pathName</i> <b>configure</b> ?<i class="m">option</i>? ?<i class="m">value option value ...</i>?</dt>
<dd></dd>


<dt>
<i class="m">pathName</i> <b>instate</b> <i class="m">statespec</i> ?<i class="m">script</i>?</dt>
<dd></dd>


<dt>
<i class="m">pathName</i> <b>state</b> ?<i class="m">stateSpec</i>?</dt>
<dd>See <i>widget(n)</i>

</dd>

</dl>
<h2><a name="SECTid8222dc0">COMPATIBILITY OPTIONS</a></h2><div class="table"><table width="100%" rules="none" cellpadding="5%">
<thead><tr class="heading">
<th width="20%">Name</th><th width="40%">Database name</th><th width="40%">Database class</th>
</tr></thead><tr class="syntax">
<td width="20%" align="left"><a name="option_-state">-state</a></td><td width="40%" align="left">state</td><td width="40%" align="left">State</td>
</tr><tr class="desc">
<td class="padding" width="20%"></td><td class="argdesc" width="80%" align="left" colspan="2">May be set to <b>normal</b> or <b>disabled</b>
to control the <b>disabled</b> state bit.
This is a ``write-only'' option: setting it changes the
widget state, but the <b>state</b> widget command does
not affect the state option.

</td>
</tr>
</table></div>
<h2><a name="SECTid8222fa0">SEE ALSO</a></h2><p class="seealso">widget(n), keynav(n)</p>
<h2><a name="SECTid8223018">KEYWORDS</a></h2><p class="keywords">
<a class="keyword" href="keyword-index.html#KW-widget">widget</a>, <a class="keyword" href="keyword-index.html#KW-button">button</a>, <a class="keyword" href="keyword-index.html#KW-default">default</a>, <a class="keyword" href="keyword-index.html#KW-command">command</a>
</p>
</div><hr class="navsep"><div class="navbar" align="center">
<a class="navaid" href="index.html">Contents</a>  <a class="navaid" href="category-index.html">Index</a>  <a class="navaid" href="keyword-index.html">Keywords</a>
</div>
</body>
</html>