Skip to content

Commit 2dfb145

Browse files
committed
fix: update bw client to provide import modules
1 parent 000a051 commit 2dfb145

1 file changed

Lines changed: 31 additions & 1 deletion

File tree

  • bec_testing_plugin/bec_widgets/widgets

bec_testing_plugin/bec_widgets/widgets/client.py

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from bec_lib.logger import bec_logger
77

8-
from bec_widgets.cli.rpc.rpc_base import RPCBase, rpc_call
8+
from bec_widgets.cli.rpc.rpc_base import RPCBase, rpc_call, rpc_timeout
99

1010
logger = bec_logger.logger
1111

@@ -16,16 +16,46 @@
1616

1717

1818
class Examplewidgetplugin(RPCBase):
19+
_IMPORT_MODULE = (
20+
"bec_testing_plugin.bec_widgets.widgets.ExampleWidgetPlugin.ExampleWidgetPlugin"
21+
)
22+
1923
@rpc_call
2024
def remove(self):
2125
"""
2226
Cleanup the BECConnector
2327
"""
2428

29+
@rpc_call
30+
def attach(self):
31+
"""
32+
None
33+
"""
34+
35+
@rpc_call
36+
def detach(self):
37+
"""
38+
Detach the widget from its parent dock widget (if widget is in the dock), making it a floating widget.
39+
"""
40+
2541

2642
class Nouiwidgetplugin(RPCBase):
43+
_IMPORT_MODULE = "bec_testing_plugin.bec_widgets.widgets.NoUiWidgetPlugin.NoUiWidgetPlugin"
44+
2745
@rpc_call
2846
def remove(self):
2947
"""
3048
Cleanup the BECConnector
3149
"""
50+
51+
@rpc_call
52+
def attach(self):
53+
"""
54+
None
55+
"""
56+
57+
@rpc_call
58+
def detach(self):
59+
"""
60+
Detach the widget from its parent dock widget (if widget is in the dock), making it a floating widget.
61+
"""

0 commit comments

Comments
 (0)