mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
feat(client): add show()/hide() methods to "gui" object
This commit is contained in:
@ -228,6 +228,16 @@ class BECGuiClientMixin:
|
|||||||
if wait:
|
if wait:
|
||||||
self._gui_started_event.wait()
|
self._gui_started_event.wait()
|
||||||
|
|
||||||
|
def show_all(self):
|
||||||
|
self._gui_started_event.wait()
|
||||||
|
rpc_client = RPCBase(gui_id=f"{self._gui_id}:window", parent=self)
|
||||||
|
rpc_client._run_rpc("show")
|
||||||
|
|
||||||
|
def hide_all(self):
|
||||||
|
self._gui_started_event.wait()
|
||||||
|
rpc_client = RPCBase(gui_id=f"{self._gui_id}:window", parent=self)
|
||||||
|
rpc_client._run_rpc("hide")
|
||||||
|
|
||||||
def close(self) -> None:
|
def close(self) -> None:
|
||||||
"""
|
"""
|
||||||
Close the gui window.
|
Close the gui window.
|
||||||
|
Reference in New Issue
Block a user