From 15515f33ef8d7321995c7ab3d38945e1be94440e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 14 Feb 2016 23:15:18 +0100 Subject: [PATCH] gui: better default placement of docks --- artiq/frontend/artiq_gui.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/artiq/frontend/artiq_gui.py b/artiq/frontend/artiq_gui.py index 100b0c39c..6b475a0a7 100755 --- a/artiq/frontend/artiq_gui.py +++ b/artiq/frontend/artiq_gui.py @@ -131,14 +131,14 @@ def main(): main_window.setCentralWidget(d_explorer) if os.name != "nt": main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, d_ttl_dds.dds_dock) - main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, d_ttl_dds.ttl_dock) - main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, d_applets) - main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, d_datasets) + main_window.tabifyDockWidget(d_ttl_dds.dds_dock, d_ttl_dds.ttl_dock) + main_window.tabifyDockWidget(d_ttl_dds.ttl_dock, d_applets) + main_window.tabifyDockWidget(d_applets, d_datasets) else: main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, d_applets) - main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, d_datasets) - main_window.addDockWidget(QtCore.Qt.LeftDockWidgetArea, d_shortcuts) - main_window.addDockWidget(QtCore.Qt.LeftDockWidgetArea, d_schedule) + main_window.tabifyDockWidget(d_applets, d_datasets) + main_window.tabifyDockWidget(d_datasets, d_shortcuts) + main_window.addDockWidget(QtCore.Qt.BottomDockWidgetArea, d_schedule) # load/initialize state smgr.load() @@ -148,7 +148,7 @@ def main(): # create first log dock if not already in state d_log0 = logmgr.first_log_dock() if d_log0 is not None: - main_window.addDockWidget(QtCore.Qt.TopDockWidgetArea, d_log0) + main_window.tabifyDockWidget(d_shortcuts, d_log0) # run main_window.show()