esrf

Beamline Instrument Software Support
SPEC Macro documentation: [ Macro Index | BCU Home ]

spec_zenity.mac $Revision: 1.2 $%BR%
See other macros in category: All
Description:
Documentation:
    DESCRIPTION
    Utility macros using a graphical interface.
    This program is a linux utility called zenity.
    Note, that it is difficult to determine, if the DISPLAY is going to work, due to session programs or DISPLAYs not set etc. So basically you need to trust that the display it ok and usable. If you use session, the window will open on the user`s screen!

Macros:
    zenity_getdirectory
    Usage: zenity_getdirectory (path to start with)
    read a directory name using a graphical interface.

    zenity_info
    Usage: zenity_info (text to display, background)
    display an information to be confirmed with a click using a graphical interface. Setting the second arg to 1 can be used to put zenity into the background, leaving spec to continue the macro.

    zenity_warning
    Usage: zenity_warning (text to display)
    display a warning to be confirmed with a click using a graphical interface. Setting the second arg to 1 can be used to put zenity into the background, leaving spec to continue the macro.

    zenity_error
    Usage: zenity_error (text to display)
    display an error text to be confirmed with a click using a graphical interface. Setting the second arg to 1 can be used to put zenity into the background, leaving spec to continue the macro.

    zenity_question
    Usage: zenity_question (text to display)
    display an erro text to be confirmed with a click using a graphical interface. Return 0 for yes and 1 for no.

    zenity_scale
    Usage: zenity_scale (initial, min, max, step)
    display an erro text to be confirmed with a click using a graphical interface. Returns a value between 0 and 100. Nothing for cancel. All values are integers.

    zenity_entry
    Usage: zenity_entry (offer text, text label)
    display an input window using a graphical interface. Return 0 for yes and 1 for no.

Internal Macros:
Filename: spec_zenity.mac
Author: H. Witsch.
Last mod.: 27/09/2013 10:57 by witsch