spacr.settings_spec¶
Map settings to GUI widget specifications without importing a GUI.
The conversion helpers return plain dictionaries that both the Qt and legacy interfaces can consume. Keeping this module dependency-light lets callers inspect setting metadata without importing plotting, imaging, or deep-learning libraries.
spacr.gui_utils re-exports
convert_settings_dict_for_gui() for compatibility with existing callers.
Functions¶
|
Convert a plain settings dict into the GUI variable spec. |
Module Contents¶
- spacr.settings_spec.convert_settings_dict_for_gui(settings)[source]¶
Convert a plain settings dict into the GUI variable spec.
Maps each key to a
(widget_type, options, default_value)triple, using combo boxes for keys with known enumerated options and inferring check/entry widgets otherwise.- Parameters:
settings – mapping of setting names to default values.
- Returns:
mapping
key -> (var_type, options, default_value)ready forspacr.gui_utils.create_input_field()or forspacr.qt.screens.settings_model.SettingsWidgets.build_sections().