1tkwait(n)                    Tk Built-In Commands                    tkwait(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       tkwait - Wait for variable to change or window to be destroyed
9

SYNOPSIS

11       tkwait variable name
12
13       tkwait visibility name
14
15       tkwait window name
16_________________________________________________________________
17
18

DESCRIPTION

20       The  tkwait  command waits for one of several things to happen, then it
21       returns without taking any other actions.  The return value  is  always
22       an  empty  string.  If the first argument is variable (or any abbrevia‐
23       tion of it) then the second argument is the name of a  global  variable
24       and  the  command waits for that variable to be modified.  If the first
25       argument is visibility (or any abbreviation  of  it)  then  the  second
26       argument  is  the  name  of a window and the tkwait command waits for a
27       change in its visibility state (as indicated by the arrival of a  Visi‐
28       bilityNotify  event).  This form is typically used to wait for a newly-
29       created window to appear on the screen before taking some  action.   If
30       the  first argument is window (or any abbreviation of it) then the sec‐
31       ond argument is the name of a window and the tkwait command  waits  for
32       that window to be destroyed.  This form is typically used to wait for a
33       user to finish interacting with a dialog box before using the result of
34       that interaction.
35
36       While  the  tkwait command is waiting it processes events in the normal
37       fashion, so the application will continue to respond to  user  interac‐
38       tions.   If  an  event handler invokes tkwait again, the nested call to
39       tkwait must complete before the outer call can complete.
40
41

KEYWORDS

43       variable, visibility, wait, window
44
45
46
47Tk                                                                   tkwait(n)
Impressum