Go up one levelGo to Previous Go to Next

Tcl Utility Procs

This package also defines some simple, yet usefull Tcl utility procedures that are described below.

Utility Procs

utilGetTopLevel

Return the name of the top level window for $w, or an empty string if $w is the root window ".".

utilGetSelection

Get the current selection and return it or return an empty string if there is no selection.

utilRaiseWindow

Make the given top level window visible by raising it, if it is hidden, or deiconifying it if it is not mapped.

utilReUseWidget

If the given widget exists, make it visible and reconfigure it with the given options, otherwise create it with the given options.

utilPrintErrors

For debugging: causes all errors to be printed on stderr in addition to any other handling.

The file udialog.tcl also defines a number of utility procedures for common dialog windows.

Dialog Procs

filename_dialog

Choose a file with a file browser.

confirm_dialog

Ask for confirmation before doing something.

error_dialog

Report an error message.

errexit_dialog

Error message dialog with an Exit button for serious errors.

warning_dialog

Pop up a window with a warning message.

info_dialog

Display an informational message.

choice_dialog

Ask the user to make a choice form a number of items.

input_dialog

Ask the user to type something in.

action_dialog

Ask the user to do something or press cancel.


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory