forked from M-Labs/artiq
1
0
Fork 0

gui: autoscroll MDI area

This commit is contained in:
Sebastien Bourdeauducq 2016-02-16 00:19:50 +01:00
parent 53076615f8
commit 87574193d4
1 changed files with 4 additions and 1 deletions

View File

@ -93,7 +93,10 @@ def main():
status_bar = QtWidgets.QStatusBar() status_bar = QtWidgets.QStatusBar()
status_bar.showMessage("Connected to {}".format(args.server)) status_bar.showMessage("Connected to {}".format(args.server))
main_window.setStatusBar(status_bar) main_window.setStatusBar(status_bar)
main_window.setCentralWidget(QtWidgets.QMdiArea()) mdi_area = QtWidgets.QMdiArea()
mdi_area.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
mdi_area.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
main_window.setCentralWidget(mdi_area)
# create UI components # create UI components
expmgr = experiments.ExperimentManager(main_window, expmgr = experiments.ExperimentManager(main_window,