Waits for a user action to take place and then returns an associated command string.
The TkWait function is called when the program is ready to wait for user input. Prior to calling TkWait the program is not able to recognize input like a button press or a key press inside a text field. Once TkWait is called, the program starts listening and processing user input. This is analogous to the Parse Pull call when using console based input in Rexx.
The only time a widget's action will cause TkWait to return is if it has been assigned a command option. NOTE: if a button is created with no command option specified, then when the user presses the button, TkWait will not return and nothing will happen in the program, even though the button seems to visually respond to the user.