forked from M-Labs/artiq
1
0
Fork 0

browser: move 'open experiment' to menu

This commit is contained in:
Robert Jördens 2016-05-18 12:48:04 +02:00
parent 141edb521a
commit 8ab6011ddb
1 changed files with 3 additions and 6 deletions

View File

@ -104,16 +104,13 @@ def main():
main_window.addDockWidget(QtCore.Qt.BottomDockWidgetArea, d_applets) main_window.addDockWidget(QtCore.Qt.BottomDockWidgetArea, d_applets)
main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, d_datasets) main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, d_datasets)
toolbar = main_window.addToolBar("Experiment") open_action = QtWidgets.QAction("&Open", main_window)
toolbar.setObjectName("experiment_toolbar")
toolbar.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
open_action = QtWidgets.QAction("Open Experiment", main_window)
open_action.setIcon(app.style().standardIcon( open_action.setIcon(app.style().standardIcon(
QtWidgets.QStyle.SP_DialogOpenButton)) QtWidgets.QStyle.SP_DialogOpenButton))
open_action.setShortcuts(QtGui.QKeySequence.Open) open_action.setShortcuts(QtGui.QKeySequence.Open)
open_action.triggered.connect(mdi_area.select_experiment) 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 # load/initialize state
if os.name == "nt": if os.name == "nt":