From 3e80b0fd8dafc4a103872ff46871677b2ff163c6 Mon Sep 17 00:00:00 2001 From: x01da Date: Mon, 18 May 2026 09:03:23 +0200 Subject: [PATCH] Automatic generated files for digital twin --- debye_bec/bec_widgets/widgets/client.py | 22 ++++++++++++++----- .../bec_widgets/widgets/designer_plugins.py | 13 +++++++++++ 2 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 debye_bec/bec_widgets/widgets/designer_plugins.py diff --git a/debye_bec/bec_widgets/widgets/client.py b/debye_bec/bec_widgets/widgets/client.py index 91294ab..cb2df5d 100644 --- a/debye_bec/bec_widgets/widgets/client.py +++ b/debye_bec/bec_widgets/widgets/client.py @@ -12,20 +12,30 @@ logger = bec_logger.logger # pylint: skip-file -_Widgets = {} +_Widgets = { + "DigitalTwin": "DigitalTwin", +} class DigitalTwin(RPCBase): - """A simple BEC widget with:""" + """Main widget of Digital Twin""" + + _IMPORT_MODULE = "debye_bec.bec_widgets.widgets.digital_twin.digital_twin" @rpc_call - def set_a(self, value: float): + def remove(self): """ - Set input A remotely from the BEC CLI. + Cleanup the BECConnector """ @rpc_call - def set_b(self, value: float): + def attach(self): """ - Set input B remotely from the BEC CLI. + None + """ + + @rpc_call + def detach(self): + """ + Detach the widget from its parent dock widget (if widget is in the dock), making it a floating widget. """ diff --git a/debye_bec/bec_widgets/widgets/designer_plugins.py b/debye_bec/bec_widgets/widgets/designer_plugins.py new file mode 100644 index 0000000..c941b27 --- /dev/null +++ b/debye_bec/bec_widgets/widgets/designer_plugins.py @@ -0,0 +1,13 @@ +# This file was automatically generated by generate_cli.py +# type: ignore +from __future__ import annotations + +# pylint: skip-file + +designer_plugins = { + "DigitalTwin": ("debye_bec.bec_widgets.widgets.digital_twin.digital_twin", "DigitalTwin"), +} + +widget_icons = { + "DigitalTwin": "lightbulb", +}