Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tkwait(1) — Sprite KS.390

Media Vault

Software Library

Restoration Projects

Artifacts Sought

tkwait  —  User Commands

NAME

tkwait − Wait for variable to change or window to be destroyed

SYNOPSIS

tkwait window name
tkwait variable name


 

DESCRIPTION

The tkwait command waits for a window to be destroyed or a variable to change, then returns without taking any other actions.  The return value is always an empty string.  If the first argument is window (or any abbreviation for it) then the second argument is the name of a window and the tkwait command waits for that window to be destroyed.  If the second argument is variable (or any abbreviation for it) then the second argument is the name of a variable and the command waits for that variable to be modified. 

While the tkwait command is waiting it processes events in the normal fashion, so the application will continue to respond to user interactions.  The tkwait command is used for modal interactions, such as when a file is to be written and the user must supply a file name:  tkwait can be used to wait for the user to enter the file name in a dialog box.  Tkwait is often used in conjunction with the grab command, to restrict the user’s activity to answering a particular question.  The most common way to use tkwait is to wait for the top-level window of a dialog box to be destroyed. 
 

KEYWORDS

variable, wait, window

Sprite version 1.0  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026