mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix(rpc): gui hide/show also hide/show all floating docks
This commit is contained in:
@ -461,6 +461,18 @@ class BECDockArea(RPCBase, BECGuiClientMixin):
|
|||||||
list: The temporary areas in the dock area.
|
list: The temporary areas in the dock area.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@rpc_call
|
||||||
|
def show(self):
|
||||||
|
"""
|
||||||
|
Show all windows including floating docks.
|
||||||
|
"""
|
||||||
|
|
||||||
|
@rpc_call
|
||||||
|
def hide(self):
|
||||||
|
"""
|
||||||
|
Hide all windows including floating docks.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
class BECFigure(RPCBase):
|
class BECFigure(RPCBase):
|
||||||
@property
|
@property
|
||||||
|
@ -53,6 +53,8 @@ class BECDockArea(BECWidget, QWidget):
|
|||||||
"attach_all",
|
"attach_all",
|
||||||
"_get_all_rpc",
|
"_get_all_rpc",
|
||||||
"temp_areas",
|
"temp_areas",
|
||||||
|
"show",
|
||||||
|
"hide",
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
@ -412,6 +414,18 @@ class BECDockArea(BECWidget, QWidget):
|
|||||||
self.cleanup()
|
self.cleanup()
|
||||||
super().close()
|
super().close()
|
||||||
|
|
||||||
|
def show(self):
|
||||||
|
"""Show all windows including floating docks."""
|
||||||
|
super().show()
|
||||||
|
for docks in self.panels.values():
|
||||||
|
docks.window().show()
|
||||||
|
|
||||||
|
def hide(self):
|
||||||
|
"""Hide all windows including floating docks."""
|
||||||
|
super().hide()
|
||||||
|
for docks in self.panels.values():
|
||||||
|
docks.window().hide()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from qtpy.QtWidgets import QApplication
|
from qtpy.QtWidgets import QApplication
|
||||||
|
Reference in New Issue
Block a user