X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fmainwindow.py;h=fdd52a53443c7c7cb78d53675b5e959981a44ba8;hp=fa19a43075d6cfd7042e90ea2bcc91295a9b3c0e;hb=ac30052c985f7088999a29611f86f534325e3045;hpb=d8f6e859b7f01a688b631dc5a67a0c43b0f83341 diff --git a/sface/mainwindow.py b/sface/mainwindow.py index fa19a43..fdd52a5 100644 --- a/sface/mainwindow.py +++ b/sface/mainwindow.py @@ -100,7 +100,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.connect(link, SIGNAL('linkActivated(QString)'), @@ -116,7 +116,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() @@ -142,6 +142,9 @@ class MainWindow(QWidget): self.setStatus("Already showing %s" % curr_screen.getTitleText(), timeout=1000) return + # This is an optimization to have a smoother animation. We + # render the widget into a pixmap and animate that instead of + # moving the whole widget around. pixmap = QPixmap(self.screens.size()) curr_screen.render(pixmap) self.screens.setCurrentWidget(self.pix)