Name

tkwait

tkwait operation name

Wait for a variable to change, a window to be destroyed, or a window’s visibility state to change. While waiting, events are processed in the normal fashion. If an event handler invokes tkwait again, the nested call to tkwait must complete before the outer call can complete. Possible forms of the tkwait command are as follows:

tkwait variable varName

Wait for the global variable varName to be modified.

tkwait visibility window

Wait for a change in the visibility state of window window.

tkwait window window

Wait for window window to be destroyed.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.