From 55e0fad006deac001e49d268ed0fb0789df6317a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Fri, 17 Sep 2010 10:45:15 +0200 Subject: [PATCH] comment on widget render --- sface/mainwindow.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sface/mainwindow.py b/sface/mainwindow.py index fa19a43..0b52d95 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) -- 2.43.0