dicogis.ui.imposed_settings module¶
Name: imposed_settings Purpose: Settings an environment variable imposes over options.ini in the GUI.
A DICOGIS_* variable set in the environment imposes its setting: the widget shows its value, locked, says which variable sets it, and the value isn’t saved, options.ini keeping its own for when the variable is unset. Shared by the settings form, the Publish tab and the output format of the main window.
Author: Julien Moura (@geojulien)
- dicogis.ui.imposed_settings.get_env_value(env_var)¶
Read the value an environment variable imposes.
- dicogis.ui.imposed_settings.get_widget_value(widget)¶
Read the value of a setting from its widget.
- dicogis.ui.imposed_settings.is_secret(env_var)¶
Tell whether an environment variable holds a secret, never to show.
- dicogis.ui.imposed_settings.mark_imposed(widget, label, env_var)¶
Lock a setting imposed by an environment variable and tell it, in its label and not only in a tooltip. To call after each translation of the label.