Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion bec_testing_plugin/bec_widgets/widgets/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
"""
Loading