A ChoiceDialog is a dialog widget used to display a message and a list of choices to get a choice from the user. A Tcl command is evaluated with the user's selection when the OK button is pressed.
set w [ChoiceDialog .d \ -text {Please choose...} \ -cols 2 \ -messagewidth 3i \ -choice {One Two Three Four Five Six Seven Eight} \ -value {One}] puts "Dialog returned: [$w activate]"
See ChoiceDialog(n) for more details.
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory