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 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
<manpage cat="widget" id="button" title="button" version="0.2">
<!-- This file was automatically generated. DO NOT EDIT (yet)! -->
<!--
Copyright (c) 2004 Joe English
-->
<?TROFF.TH title="button" section="n" date="0.2" source="tile" manual="Tile Widget Set" ?>
<namesection>
<name>ttk::button</name>
<desc>Widget that issues a command when pressed</desc>
</namesection>
<synopsis>
<syntax>
<b>ttk::button</b> <m>pathName</m> ?<m>options</m>?
</syntax>
</synopsis>
<section>
<title>DESCRIPTION</title>
<p>A <b cat="AMBIGUOUS widget cmd">button</b> widget displays a textual label and/or image,
and evaluates a command when pressed.
</p>
</section>
<section>
<title>STANDARD OPTIONS</title>
<sl cat="stdopt" cols="4">
<li>-class</li>
<li>-compound</li>
<li>-cursor</li>
<li>-image</li>
<li>-state</li>
<li>-style</li>
<li>-takefocus</li>
<li>-text</li>
<li>-textvariable</li>
<li>-underline</li>
<li>-width</li>
</sl>
</section>
<section>
<title>OPTIONS</title>
<optionlist>
<optiondef>
<name>-command</name>
<dbname>command</dbname>
<dbclass>Command</dbclass>
<desc>A script to evaluate when the widget is invoked.
</desc>
</optiondef>
<optiondef>
<name>-default</name>
<dbname>default</dbname>
<dbclass>Default</dbclass>
<desc>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 <Enter>").
<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>.
</desc>
</optiondef>
<optiondef>
<name>-width</name>
<dbname>width</dbname>
<dbclass>Width</dbclass>
<desc>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.
</desc>
</optiondef>
</optionlist>
</section>
<section>
<title>WIDGET COMMAND</title>
<dl>
<dle>
<dt><m>pathName</m> <b>invoke</b></dt>
<dd>Invokes the command associated with the button.
</dd>
</dle>
<dle>
<dt><m>pathName</m> <b>cget</b> <m>option</m></dt>
<dd/>
</dle>
<dle>
<dt><m>pathName</m> <b>configure</b> ?<m>option</m>? ?<m>value option value ...</m>?</dt>
<dd/>
</dle>
<dle>
<dt><m>pathName</m> <b>instate</b> <m>statespec</m> ?<m>script</m>?</dt>
<dd/>
</dle>
<dle>
<dt><m>pathName</m> <b>state</b> ?<m>stateSpec</m>?</dt>
<dd>See <i>widget(n)</i>
</dd>
</dle>
</dl>
</section>
<section>
<title>COMPATIBILITY OPTIONS</title>
<optionlist>
<optiondef>
<name>-state</name>
<dbname>state</dbname>
<dbclass>State</dbclass>
<desc>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.
</desc>
</optiondef>
</optionlist>
</section>
<seealso>
<ref>widget(n)</ref>
<ref>keynav(n)</ref>
</seealso>
<keywords>
<keyword>widget</keyword>
<keyword>button</keyword>
<keyword>default</keyword>
<keyword>command</keyword>
</keywords>
</manpage>
|