diff --git a/src/calng/scenes.py b/src/calng/scenes.py index d59dd95eb80ca4518d4565cb3399fdea73154646..a701f5acdb7bc809af55976541d7a6400104a34c 100644 --- a/src/calng/scenes.py +++ b/src/calng/scenes.py @@ -4,6 +4,7 @@ import karathon from karabo.common.scenemodel.api import ( CheckBoxModel, ColorBoolModel, + ComboBoxModel, DeviceSceneLinkModel, DetectorGraphModel, DisplayCommandModel, @@ -257,7 +258,16 @@ class MaybeEditableRow(HorizontalLayout): if "valueType" not in key_attr: return value_type = key_attr["valueType"] - if value_type in _type_to_line_editable: + if "options" in key_attr: + self.children.append( + ComboBoxModel( + keys=[f"{device_id}.{key_path}"], + width=edit_width, + height=height, + klass="EditableComboBox", + ) + ) + elif value_type in _type_to_line_editable: line_editable_class, extra_args = _type_to_line_editable[value_type] self.children.append( line_editable_class(