mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
browser: move 'open experiment' to menu
This commit is contained in:
parent
141edb521a
commit
8ab6011ddb
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user