Snapshot/SnapshotTimer.py

changeset 2993
4933ac9daa80
parent 2302
f29e9405c851
child 3030
4a0a82ddd9d2
child 3057
10516539f238
diff -r dbdf27746da5 -r 4933ac9daa80 Snapshot/SnapshotTimer.py
--- a/Snapshot/SnapshotTimer.py	Mon Oct 07 19:10:11 2013 +0200
+++ b/Snapshot/SnapshotTimer.py	Mon Oct 07 19:57:08 2013 +0200
@@ -36,8 +36,8 @@
         
         # text is taken from paintEvent with maximum number plus some margin
         self.resize(
-            self.fontMetrics().width(
-                self.trUtf8("Snapshot will be taken in %n seconds", "", 99)) + 6,
+            self.fontMetrics().width(self.trUtf8(
+                "Snapshot will be taken in %n seconds", "", 99)) + 6,
             self.fontMetrics().height() + 4)
         
         self.__timer.timeout.connect(self.__bell)
@@ -49,7 +49,8 @@
         @param seconds timeout value (integer)
         """
         screenGeom = QApplication.desktop().screenGeometry()
-        self.move(screenGeom.width() // 2 - self.size().width() // 2, screenGeom.top())
+        self.move(screenGeom.width() // 2 - self.size().width() // 2,
+                  screenGeom.top())
         self.__toggle = True
         self.__time = 0
         self.__length = seconds
@@ -100,7 +101,8 @@
                                    self.__length - self.__time)
             textRect = painter.boundingRect(self.rect().adjusted(2, 2, -2, -2),
                 Qt.AlignHCenter | Qt.TextSingleLine, helpText)
-            painter.drawText(textRect, Qt.AlignHCenter | Qt.TextSingleLine, helpText)
+            painter.drawText(textRect, Qt.AlignHCenter | Qt.TextSingleLine,
+                             helpText)
     
     def enterEvent(self, evt):
         """
@@ -111,7 +113,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