File: tkwait.html

package info (click to toggle)
gcl 2.6.14-21
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 60,864 kB
  • sloc: ansic: 177,407; lisp: 151,509; asm: 128,169; sh: 22,510; cpp: 11,923; tcl: 3,181; perl: 2,930; makefile: 2,360; sed: 334; yacc: 226; lex: 95; awk: 30; fortran: 24; csh: 23
file content (84 lines) | stat: -rw-r--r-- 3,600 bytes parent folder | download | duplicates (4)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>tkwait (GCL TK Manual)</title>

<meta name="description" content="tkwait (GCL TK Manual)">
<meta name="keywords" content="tkwait (GCL TK Manual)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html" rel="start" title="Top">
<link href="wm.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Control.html" rel="up" title="Control">
<link href="update.html" rel="next" title="update">
<link href="tkvars.html" rel="prev" title="tkvars">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body lang="en">
<span id="tkwait"></span><div class="header">
<p>
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> &nbsp; [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<hr>
<span id="tkwait-1"></span><h3 class="section">3.22 tkwait</h3>

<p>tkwait \- Wait for variable to change or window to be destroyed
</p><span id="Synopsis-34"></span><h4 class="unnumberedsubsec">Synopsis</h4>
<br><p><b>tkwait&nbsp;:variable&nbsp;</b><i>name</i><!-- /@w --><br>
<br><b>tkwait&nbsp;:visibility&nbsp;</b><i>name</i><!-- /@w --><br>
<b>tkwait :window </b><i>name</i>
</p>
<span id="Description-33"></span><h4 class="unnumberedsubsec">Description</h4>

<p>The <b>tkwait</b> command waits for one of several things to happen,
then it returns without taking any other actions.
The return value is always an empty string.
If the first argument is <b>:variable</b> (or any abbreviation of
it) then the second argument is the name of a global variable and the
command waits for that variable to be modified.
If the first argument is <b>:visibility</b> (or any abbreviation
of it) then the second argument is the name of a window and the
<b>tkwait</b> command waits for a change in its
visibility state (as indicated by the arrival of a VisibilityNotify
event).  This form is typically used to wait for a newly-created
window to appear on the screen before taking some action.
If the first argument is <b>:window</b> (or any abbreviation
of it) then the second argument is the name of a window and the
<b>tkwait</b> command waits for that window to be destroyed.
This form is typically used to wait for a user to finish interacting
with a dialog box before using the result of that interaction.
</p>
<p>While the <b>tkwait</b> command is waiting it processes events in
the normal fashion, so the application will continue to respond
to user interactions.
</p>
<span id="Keywords-36"></span><h4 class="unnumberedsubsec">Keywords</h4>
<p>variable, visibility, wait, window
</p>


</body>
</html>