Skip to content

Commit 402c721

Browse files
committed
fix(rpc): rpc flags adjustment for MainApp and DeveloperWidget
1 parent 6883910 commit 402c721

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

bec_widgets/applications/launch_window.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ def _fit_label_to_width(self, label: QLabel, max_width: int, min_pt: int = 10):
189189

190190
class LaunchWindow(BECMainWindow):
191191
RPC = True
192+
PLUGIN = False
192193
TILE_SIZE = (250, 300)
193194
DEFAULT_LAUNCH_SIZE = (800, 600)
194195
USER_ACCESS = ["show_launcher", "hide_launcher"]

bec_widgets/applications/main_app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818

1919
class BECMainApp(BECMainWindow):
20+
RPC = False
21+
PLUGIN = False
2022

2123
def __init__(
2224
self,

bec_widgets/applications/views/developer_view/developer_widget.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def replace_python_examples(match):
7979

8080

8181
class DeveloperWidget(DockAreaWidget):
82+
RPC = False
83+
PLUGIN = False
8284

8385
def __init__(self, parent=None, **kwargs):
8486
super().__init__(parent=parent, variant="compact", **kwargs)

bec_widgets/cli/client.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2848,6 +2848,20 @@ def get_data(self) -> "np.ndarray":
28482848
"""
28492849

28502850

2851+
class LaunchWindow(RPCBase):
2852+
@rpc_call
2853+
def show_launcher(self):
2854+
"""
2855+
Show the launcher window.
2856+
"""
2857+
2858+
@rpc_call
2859+
def hide_launcher(self):
2860+
"""
2861+
Hide the launcher window.
2862+
"""
2863+
2864+
28512865
class LogPanel(RPCBase):
28522866
"""Displays a log panel"""
28532867

0 commit comments

Comments
 (0)