Class ::tycho::YesNoQuery


Inherits: ::tycho::Dialog - Related constructs - Source File - Contents: itk_options
Query the user for a yes/no response to a question. The command to execute in response to the user's answer can be specified using the options "-yescommand" and "-nocommand". The value returned by whichever command is executed can be obtained by creating the dialog box using the procedure wait after creating the instance. This functionality can be accessed more simply through the procedure ::tycho::askuser.

Itk_options

-yescommand {::tycho::Dialog::answer 1}
Specify the command to execute on a yes response.
-nocommand {::tycho::Dialog::answer 0}
Specify the command to execute on a no response.

Index of classes



Author: Wan-Teh Chang, Joel King, and Edward A. Lee
Version: @(#)YesNoQuery.itcl 1.15 11/12/96
Copyright: (c) 1995-1996 The Regents of the University of California.