This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



tkwait(n)                                   Tk Built-In Commands                                   tkwait(n)



____________________________________________________________________________________________________________

NAME
       tkwait - Wait for variable to change or window to be destroyed

SYNOPSIS
       tkwait variable name

       tkwait visibility name

       tkwait window name
____________________________________________________________________________________________________________


DESCRIPTION
       The  tkwait  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  variable  (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 visibility (or any abbreviation  of
       it) then the second argument is the name of a window and the tkwait 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 window (or any abbreviation of it) then the second argument is the name of a window
       and  the  tkwait  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.

       While the tkwait command is waiting it processes events in the normal  fashion,  so  the  application
       will  continue to respond to user interactions.  If an event handler invokes tkwait again, the nested
       call to tkwait must complete before the outer call can complete.


KEYWORDS
       variable, visibility, wait, window



Tk                                                                                                 tkwait(n)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation to the Tk project.
Bug reports
Report bugs in the functionality of the described tool or API to Apple through Bug Reporter and to the Tk project through their bug reporting page.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...