window in the toolkit, which was to the "tkwait" command, which waits for a change in state. What was intended was to wait for a change in state to visible only; once visible, the "tkwait" command should not invoked or else the process will block.