1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-07 17:32:48 +01:00

feat: (#493) device browser to display config

This commit is contained in:
2025-05-13 15:37:44 +02:00
parent eb76d5bfbd
commit e6ab96ebdf
2 changed files with 18 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ _Widgets = {
"ResumeButton": "ResumeButton",
"RingProgressBar": "RingProgressBar",
"ScanControl": "ScanControl",
"ScanMetadata": "ScanMetadata",
"ScatterWaveform": "ScatterWaveform",
"SignalComboBox": "SignalComboBox",
"SignalLabel": "SignalLabel",
@@ -3061,6 +3062,22 @@ class ScanControl(RPCBase):
"""
class ScanMetadata(RPCBase):
@property
@rpc_call
def enabled(self):
"""
None
"""
@enabled.setter
@rpc_call
def enabled(self):
"""
None
"""
class ScatterCurve(RPCBase):
"""Scatter curve item for the scatter waveform widget."""

View File

@@ -85,6 +85,7 @@ def test_device_item_expansion(device_browser, qtbot):
qtbot.mouseClick(widget._expansion_button, Qt.MouseButton.LeftButton)
form = widget._contents.layout().itemAt(0).widget()
qtbot.waitUntil(lambda: isinstance(form, DeviceItemForm), timeout=500)
assert widget.expanded
assert (name_field := form.widget_dict.get("name")) is not None
assert name_field.getValue() == "samx"