1tkwait(n) Tk Built-In Commands tkwait(n)
2
3
4
5______________________________________________________________________________
6
8 tkwait - Wait for variable to change or window to be destroyed
9
11 tkwait variable name
12
13 tkwait visibility name
14
15 tkwait window name
16______________________________________________________________________________
17
19 The tkwait command waits for one of several things to happen, then it
20 returns without taking any other actions. The return value is always
21 an empty string. If the first argument is variable (or any abbrevia‐
22 tion of it) then the second argument is the name of a global variable
23 and the command waits for that variable to be modified. If the first
24 argument is visibility (or any abbreviation of it) then the second ar‐
25 gument is the name of a window and the tkwait command waits for a
26 change in its visibility state (as indicated by the arrival of a Visi‐
27 bilityNotify event). This form is typically used to wait for a newly-
28 created window to appear on the screen before taking some action. If
29 the first argument is window (or any abbreviation of it) then the sec‐
30 ond argument is the name of a window and the tkwait command waits for
31 that window to be destroyed. This form is typically used to wait for a
32 user to finish interacting with a dialog box before using the result of
33 that interaction.
34
35 While the tkwait command is waiting it processes events in the normal
36 fashion, so the application will continue to respond to user interac‐
37 tions. If an event handler invokes tkwait again, the nested call to
38 tkwait must complete before the outer call can complete.
39
41 bind(n), vwait(n)
42
44 variable, visibility, wait, window
45
46
47
48Tk tkwait(n)