X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sface%2Fmainwindow.py;h=b06476953050ed4e342fb40d27a1854730cf0804;hb=40456613e902f122d2fd13c1aac32bc72c0c1642;hp=fa19a43075d6cfd7042e90ea2bcc91295a9b3c0e;hpb=d8f6e859b7f01a688b631dc5a67a0c43b0f83341;p=sface.git diff --git a/sface/mainwindow.py b/sface/mainwindow.py index fa19a43..b064769 100644 --- a/sface/mainwindow.py +++ b/sface/mainwindow.py @@ -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) @@ -172,5 +175,6 @@ class MainWindow(QWidget): self.status.set(msg, timeout) def nodeSelectionChanged(self, hostname): + print "nodeSelectionChanged" if self.rspecWindow.isVisible(): self.rspecWindow.showNode(hostname)