tkwait variable name
Waits until the global variable given by name is modified. Returns an empty string.
See also:
Tk syntax help - Category Command