Snapshot/SnapshotTimer.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3030
4a0a82ddd9d2
child 3060
5883ce99ee12
diff -r 10516539f238 -r 0a02c433f52d Snapshot/SnapshotTimer.py
--- a/Snapshot/SnapshotTimer.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/Snapshot/SnapshotTimer.py	Fri Nov 01 15:48:48 2013 +0100
@@ -101,7 +101,8 @@
             painter.setBrush(textBackgroundColor)
             helpText = self.trUtf8("Snapshot will be taken in %n seconds", "",
                                    self.__length - self.__time)
-            textRect = painter.boundingRect(self.rect().adjusted(2, 2, -2, -2),
+            textRect = painter.boundingRect(
+                self.rect().adjusted(2, 2, -2, -2),
                 Qt.AlignHCenter | Qt.TextSingleLine, helpText)
             painter.drawText(textRect, Qt.AlignHCenter | Qt.TextSingleLine,
                              helpText)
@@ -115,8 +116,8 @@
         screenGeom = QApplication.desktop().screenGeometry()
         if self.x() == screenGeom.left():
             self.move(
-                screenGeom.x() + (screenGeom.width() // 2 - \
-                    self.size().width() // 2),
+                screenGeom.x() + 
+                    (screenGeom.width() // 2 - self.size().width() // 2),
                 screenGeom.top())
         else:
             self.move(screenGeom.topLeft())

eric ide

mercurial