forked from M-Labs/artiq
1
0
Fork 0

dashboard: style

This commit is contained in:
Robert Jördens 2016-07-18 16:51:17 +02:00
parent 6a7377244b
commit 1877329fd1
1 changed files with 4 additions and 2 deletions

View File

@ -76,7 +76,8 @@ class MainWindow(QtWidgets.QMainWindow):
class MdiArea(QtWidgets.QMdiArea): class MdiArea(QtWidgets.QMdiArea):
def __init__(self): def __init__(self):
QtWidgets.QMdiArea.__init__(self) QtWidgets.QMdiArea.__init__(self)
self.pixmap = QtGui.QPixmap(os.path.join(artiq_dir, "gui", "logo20.svg")) self.pixmap = QtGui.QPixmap(os.path.join(
artiq_dir, "gui", "logo20.svg"))
def paintEvent(self, event): def paintEvent(self, event):
QtWidgets.QMdiArea.paintEvent(self, event) QtWidgets.QMdiArea.paintEvent(self, event)
@ -194,7 +195,8 @@ def main():
if d_log0 is not None: if d_log0 is not None:
main_window.tabifyDockWidget(d_schedule, d_log0) main_window.tabifyDockWidget(d_schedule, d_log0)
logging.info("ARTIQ dashboard %s connected to %s", artiq_version, args.server) logging.info("ARTIQ dashboard %s connected to %s",
artiq_version, args.server)
# run # run
main_window.show() main_window.show()