| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<html> |
| 3 |
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ --> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 6 |
<title>tk-listbox-single-select (GCL TK Manual)</title> |
| 7 |
|
| 8 |
<meta name="description" content="tk-listbox-single-select (GCL TK Manual)"> |
| 9 |
<meta name="keywords" content="tk-listbox-single-select (GCL TK Manual)"> |
| 10 |
<meta name="resource-type" content="document"> |
| 11 |
<meta name="distribution" content="global"> |
| 12 |
<meta name="Generator" content="makeinfo"> |
| 13 |
<link href="index.html" rel="start" title="Top"> |
| 14 |
<link href="wm.html#SEC_Contents" rel="contents" title="Table of Contents"> |
| 15 |
<link href="Control.html" rel="up" title="Control"> |
| 16 |
<link href="lower.html" rel="next" title="lower"> |
| 17 |
<link href="grab.html" rel="prev" title="grab"> |
| 18 |
<style type="text/css"> |
| 19 |
<!-- |
| 20 |
a.summary-letter {text-decoration: none} |
| 21 |
blockquote.indentedblock {margin-right: 0em} |
| 22 |
div.display {margin-left: 3.2em} |
| 23 |
div.example {margin-left: 3.2em} |
| 24 |
div.lisp {margin-left: 3.2em} |
| 25 |
kbd {font-style: oblique} |
| 26 |
pre.display {font-family: inherit} |
| 27 |
pre.format {font-family: inherit} |
| 28 |
pre.menu-comment {font-family: serif} |
| 29 |
pre.menu-preformatted {font-family: serif} |
| 30 |
span.nolinebreak {white-space: nowrap} |
| 31 |
span.roman {font-family: initial; font-weight: normal} |
| 32 |
span.sansserif {font-family: sans-serif; font-weight: normal} |
| 33 |
ul.no-bullet {list-style: none} |
| 34 |
--> |
| 35 |
</style> |
| 36 |
|
| 37 |
|
| 38 |
</head> |
| 39 |
|
| 40 |
<body lang="en"> |
| 41 |
<span id="tk_002dlistbox_002dsingle_002dselect"></span><div class="header"> |
| 42 |
<p> |
| 43 |
Next: <a href="lower.html" accesskey="n" rel="next">lower</a>, Previous: <a href="grab.html" accesskey="p" rel="prev">grab</a>, Up: <a href="Control.html" accesskey="u" rel="up">Control</a> [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p> |
| 44 |
</div> |
| 45 |
<hr> |
| 46 |
<span id="tk_002dlistbox_002dsingle_002dselect-1"></span><h3 class="section">3.8 tk-listbox-single-select</h3> |
| 47 |
|
| 48 |
<p>tk-listbox-single-select \- Allow only one selected element in listbox(es) |
| 49 |
</p><span id="Synopsis-22"></span><h4 class="unnumberedsubsec">Synopsis</h4> |
| 50 |
<p><b>tk-listbox-single-select </b><i>arg </i><span class="roman">?</span><i>arg arg ...</i>? |
| 51 |
</p> |
| 52 |
<span id="Description-19"></span><h4 class="unnumberedsubsec">Description</h4> |
| 53 |
|
| 54 |
<p>This command is a Tcl procedure provided as part of the Tk script library. |
| 55 |
It takes as arguments the path names of one or more listbox widgets, |
| 56 |
or the value <b>Listbox</b>. |
| 57 |
For each named widget, <b>tk-listbox-single-select</b> modifies the |
| 58 |
bindings of the widget so that only a single element may be selected |
| 59 |
at a time (the normal configuration allows multiple elements to be |
| 60 |
selected). |
| 61 |
If the keyword <b>Listbox</b><span class="roman"> is among the </span><i>window</i> arguments, |
| 62 |
then the class bindings for listboxes are changed so that all |
| 63 |
listboxes have the one-selection-at-a-time behavior. |
| 64 |
</p> |
| 65 |
<span id="Keywords-22"></span><h4 class="unnumberedsubsec">Keywords</h4> |
| 66 |
<p>listbox, selection |
| 67 |
</p> |
| 68 |
|
| 69 |
|
| 70 |
</body> |
| 71 |
</html> |