File tree Expand file tree Collapse file tree
bec_testing_plugin/bec_widgets/widgets Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66from 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
1010logger = bec_logger .logger
1111
1616
1717
1818class 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
2642class 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+ """
You can’t perform that action at this time.
0 commit comments