self.setText("")
QTimer.singleShot(1500, self.sliceUpdateDate)
+
class MainWindow(QWidget):
def __init__(self, parent=None):
QWidget.__init__(self, parent)
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)
self.status.set(msg, timeout)
def nodeSelectionChanged(self, hostname):
- self.rspecWindow.showNode(hostname)
+ print "nodeSelectionChanged"
+ if self.rspecWindow.isVisible():
+ self.rspecWindow.showNode(hostname)