| 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>tkwait (GCL TK Manual)</title> |
| 7 |
|
| 8 |
<meta name="description" content="tkwait (GCL TK Manual)"> |
| 9 |
<meta name="keywords" content="tkwait (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="update.html" rel="next" title="update"> |
| 17 |
<link href="tkvars.html" rel="prev" title="tkvars"> |
| 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="tkwait"></span><div class="header"> |
| 42 |
<p> |
| 43 |
Next: <a href="update.html" accesskey="n" rel="next">update</a>, Previous: <a href="tkvars.html" accesskey="p" rel="prev">tkvars</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="tkwait-1"></span><h3 class="section">3.22 tkwait</h3> |
| 47 |
|
| 48 |
<p>tkwait \- Wait for variable to change or window to be destroyed |
| 49 |
</p><span id="Synopsis-34"></span><h4 class="unnumberedsubsec">Synopsis</h4> |
| 50 |
<br><p><b>tkwait :variable </b><i>name</i><!-- /@w --><br> |
| 51 |
<br><b>tkwait :visibility </b><i>name</i><!-- /@w --><br> |
| 52 |
<b>tkwait :window </b><i>name</i> |
| 53 |
</p> |
| 54 |
<span id="Description-33"></span><h4 class="unnumberedsubsec">Description</h4> |
| 55 |
|
| 56 |
<p>The <b>tkwait</b> command waits for one of several things to happen, |
| 57 |
then it returns without taking any other actions. |
| 58 |
The return value is always an empty string. |
| 59 |
If the first argument is <b>:variable</b> (or any abbreviation of |
| 60 |
it) then the second argument is the name of a global variable and the |
| 61 |
command waits for that variable to be modified. |
| 62 |
If the first argument is <b>:visibility</b> (or any abbreviation |
| 63 |
of it) then the second argument is the name of a window and the |
| 64 |
<b>tkwait</b> command waits for a change in its |
| 65 |
visibility state (as indicated by the arrival of a VisibilityNotify |
| 66 |
event). This form is typically used to wait for a newly-created |
| 67 |
window to appear on the screen before taking some action. |
| 68 |
If the first argument is <b>:window</b> (or any abbreviation |
| 69 |
of it) then the second argument is the name of a window and the |
| 70 |
<b>tkwait</b> command waits for that window to be destroyed. |
| 71 |
This form is typically used to wait for a user to finish interacting |
| 72 |
with a dialog box before using the result of that interaction. |
| 73 |
</p> |
| 74 |
<p>While the <b>tkwait</b> command is waiting it processes events in |
| 75 |
the normal fashion, so the application will continue to respond |
| 76 |
to user interactions. |
| 77 |
</p> |
| 78 |
<span id="Keywords-36"></span><h4 class="unnumberedsubsec">Keywords</h4> |
| 79 |
<p>variable, visibility, wait, window |
| 80 |
</p> |
| 81 |
|
| 82 |
|
| 83 |
</body> |
| 84 |
</html> |