From 6b2568c66a59416b4c3869853bc2a75d818995e8 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Tue, 21 Apr 2026 09:29:15 +0200 Subject: [PATCH] fix: update bw client to provide import modules --- .../bec_widgets/widgets/client.py | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/bec_testing_plugin/bec_widgets/widgets/client.py b/bec_testing_plugin/bec_widgets/widgets/client.py index d138dd4..20a0191 100644 --- a/bec_testing_plugin/bec_widgets/widgets/client.py +++ b/bec_testing_plugin/bec_widgets/widgets/client.py @@ -5,7 +5,7 @@ from bec_lib.logger import bec_logger -from bec_widgets.cli.rpc.rpc_base import RPCBase, rpc_call +from bec_widgets.cli.rpc.rpc_base import RPCBase, rpc_call, rpc_timeout logger = bec_logger.logger @@ -16,16 +16,46 @@ class Examplewidgetplugin(RPCBase): + _IMPORT_MODULE = ( + "bec_testing_plugin.bec_widgets.widgets.ExampleWidgetPlugin.ExampleWidgetPlugin" + ) + @rpc_call def remove(self): """ Cleanup the BECConnector """ + @rpc_call + def attach(self): + """ + 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. + """ + class Nouiwidgetplugin(RPCBase): + _IMPORT_MODULE = "bec_testing_plugin.bec_widgets.widgets.NoUiWidgetPlugin.NoUiWidgetPlugin" + @rpc_call def remove(self): """ Cleanup the BECConnector """ + + @rpc_call + def attach(self): + """ + 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. + """