Debian Codegraph @

info/gcl-tk/update.html

raw
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>update (GCL TK Manual)</title>
7
8 <meta name="description" content="update (GCL TK Manual)">
9 <meta name="keywords" content="update (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="winfo.html" rel="next" title="winfo">
17 <link href="tkwait.html" rel="prev" title="tkwait">
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="update"></span><div class="header">
42 <p>
43 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>
44 </div>
45 <hr>
46 <span id="update-1"></span><h3 class="section">3.23 update</h3>
47
48 <p>update \- Process pending events and/or when-idle handlers
49 </p><span id="Synopsis-35"></span><h4 class="unnumberedsubsec">Synopsis</h4>
50 <p><b>update</b><span class="roman"> ?</span><b>:idletasks</b>?
51 </p>
52 <span id="Description-34"></span><h4 class="unnumberedsubsec">Description</h4>
53
54 <p>This command is used to bring the entire application world
55 &ldquo;up to date.&rdquo;
56 It flushes all pending output to the display, waits for the
57 server to process that output and return errors or events,
58 handles all pending events of any sort (including when-idle handlers),
59 and repeats this set of operations until there are no pending
60 events, no pending when-idle handlers, no pending output to the server,
61 and no operations still outstanding at the server.
62 </p>
63 <p>If the <b>idletasks</b> keyword is specified as an argument to the
64 command, then no new events or errors are processed; only when-idle
65 idlers are invoked.
66 This causes operations that are normally deferred, such as display
67 updates and window layout calculations, to be performed immediately.
68 </p>
69 <p>The <b>update :idletasks</b> command is useful in scripts where
70 changes have been made to the application&rsquo;s state and you want those
71 changes to appear on the display immediately, rather than waiting
72 for the script to complete.
73 The <b>update</b> command with no options is useful in scripts where
74 you are performing a long-running computation but you still want
75 the application to respond to user interactions; if you occasionally
76 call <b>update</b> then user input will be processed during the
77 next call to <b>update</b>.
78 </p>
79 <span id="Keywords-37"></span><h4 class="unnumberedsubsec">Keywords</h4>
80 <p>event, flush, handler, idle, update
81 </p>
82
83
84 </body>
85 </html>