File: update.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 (85 lines) | stat: -rw-r--r-- 3,592 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
85
<!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>update (GCL TK Manual)</title>

<meta name="description" content="update (GCL TK Manual)">
<meta name="keywords" content="update (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="winfo.html" rel="next" title="winfo">
<link href="tkwait.html" rel="prev" title="tkwait">
<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="update"></span><div class="header">
<p>
Next: <a href="winfo.html" accesskey="n" rel="next">winfo</a>, Previous: <a href="tkwait.html" accesskey="p" rel="prev">tkwait</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="update-1"></span><h3 class="section">3.23 update</h3>

<p>update \- Process pending events and/or when-idle handlers
</p><span id="Synopsis-35"></span><h4 class="unnumberedsubsec">Synopsis</h4>
<p><b>update</b><span class="roman"> ?</span><b>:idletasks</b>?
</p>
<span id="Description-34"></span><h4 class="unnumberedsubsec">Description</h4>

<p>This command is used to bring the entire application world
&ldquo;up to date.&rdquo;
It flushes all pending output to the display,  waits for the
server to process that output and return errors or events,
handles all pending events of any sort (including when-idle handlers),
and repeats this set of operations until there are no pending
events, no pending when-idle handlers, no pending output to the server,
and no operations still outstanding at the server.  
</p>
<p>If the <b>idletasks</b> keyword is specified as an argument to the
command, then no new events or errors are processed;  only when-idle
idlers are invoked.
This causes operations that are normally deferred, such as display
updates and window layout calculations, to be performed immediately.
</p>
<p>The <b>update :idletasks</b> command is useful in scripts where
changes have been made to the application&rsquo;s state and you want those
changes to appear on the display immediately, rather than waiting
for the script to complete.
The <b>update</b> command with no options is useful in scripts where
you are performing a long-running computation but you still want
the application to respond to user interactions;  if you occasionally
call <b>update</b> then user input will be processed during the
next call to <b>update</b>.
</p>
<span id="Keywords-37"></span><h4 class="unnumberedsubsec">Keywords</h4>
<p>event, flush, handler, idle, update
</p>


</body>
</html>