This section contains some hints that might be useful when working with SALOME GUI input widgets.
This type of widgets is used for numeric (integer or floating-point) data input. Spin boxes are used in standard SALOME modules if the input value has a clearly defined input range (and precision in case of a floating-point value).
Input precision has a specific semantics in SALOME floating-point spin boxes:
To make the user aware of an input value constraints applied by some SALOME operations, the following basic capabilties are provided by spin boxes:
If the input text in a spin box does not meet the constraints, the user is shown a message in a tooltip near the spin box just as he types in it. The tooltip contains information about the valid data range. For a floating-point input, the tooltip also contains information about the expected precision.
In standard SALOME modules the precision value can be adjusted through user preferences of the correspodning modules, and the tooltip contains a reference to the corresponding parameter in the preferences.
On-line documentation for each standard SALOME module contains the list of user preferences that can be used for tuning floating-point precision for different types of input quantities.
Apart from the numeric input, spin boxes in some SALOME modules accept the names of Notebook variables (see Using Notebook page for more details about Notebook).
If a spin box accepts variable names, then it is additionally checked whether the manually input text represents a variable name. Variable names should comply with the common naming rules for Python variables. If the input is neither a valid number nor a variable name, the tooltip informs the user that variable names are also acceptable in this spin box.