From 8ab6011ddb4d8d175f3d7d9847b954d340ed7030 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 18 May 2016 12:48:04 +0200 Subject: [PATCH] browser: move 'open experiment' to menu --- artiq/frontend/artiq_browser.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/artiq/frontend/artiq_browser.py b/artiq/frontend/artiq_browser.py index 363f9273a..7bd4c8c2f 100755 --- a/artiq/frontend/artiq_browser.py +++ b/artiq/frontend/artiq_browser.py @@ -104,16 +104,13 @@ def main(): main_window.addDockWidget(QtCore.Qt.BottomDockWidgetArea, d_applets) main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, d_datasets) - toolbar = main_window.addToolBar("Experiment") - toolbar.setObjectName("experiment_toolbar") - toolbar.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon) - - open_action = QtWidgets.QAction("Open Experiment", main_window) + open_action = QtWidgets.QAction("&Open", main_window) open_action.setIcon(app.style().standardIcon( QtWidgets.QStyle.SP_DialogOpenButton)) open_action.setShortcuts(QtGui.QKeySequence.Open) open_action.triggered.connect(mdi_area.select_experiment) - toolbar.addAction(open_action) + exp_group = main_window.menuBar().addMenu("&Experiment") + exp_group.addAction(open_action) # load/initialize state if os.name == "nt":