X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fmainwindow.py;h=d23c7b3823b1d641ca5567d159533dbb11d8aa10;hp=b9de6fafc6255306d486fc7138793ab491fc8870;hb=309628a04d6ea96e70d48baccf0b870b4a704ce9;hpb=7ad7a8af395e0e63ca4c81e6eb5af34ad12fe2fe diff --git a/sface/mainwindow.py b/sface/mainwindow.py index b9de6fa..d23c7b3 100644 --- a/sface/mainwindow.py +++ b/sface/mainwindow.py @@ -1,4 +1,3 @@ - import os import sys import time @@ -18,6 +17,10 @@ class Nav(QWidget): QWidget.__init__(self, parent) self.title = QLabel("", self) + scene=QGraphicsScene() + pixmap = QPixmap('/Users/parmentelat/git/sface/macos/graphic-sfa64.png') + logolabel=QLabel("",self) + logolabel.setPixmap(pixmap) self.main = QLabel("", self) self.main.setAlignment(Qt.AlignRight) @@ -28,6 +31,7 @@ class Nav(QWidget): self.help.setAlignment(Qt.AlignRight) hlayout = QHBoxLayout() + hlayout.addWidget(logolabel) hlayout.addWidget(self.title) hlayout.addStretch() hlayout.addWidget(QLabel("Go to: ", self)) @@ -109,7 +113,7 @@ class MainWindow(QWidget): layout.addWidget(self.screens) layout.addLayout(hlayout) self.setLayout(layout) - self.resize(800, 600) + self.resize(800, 500) for link in (self.nav.main, self.nav.config, self.nav.help): self.connect(link, SIGNAL('linkActivated(QString)'), @@ -125,7 +129,7 @@ class MainWindow(QWidget): def showLogWindow(self, link): self.logWindow.show() - self.logWindow.resize(800, 400) + self.logWindow.resize(800, 200) self.logWindow.raise_() self.logWindow.activateWindow()