Snapshot/SnapshotFreehandGrabber.py

changeset 3030
4a0a82ddd9d2
parent 2997
7f0ef975da9e
child 3034
7ce719013078
child 3058
0a02c433f52d
--- a/Snapshot/SnapshotFreehandGrabber.py	Fri Oct 18 18:00:02 2013 +0200
+++ b/Snapshot/SnapshotFreehandGrabber.py	Fri Oct 18 18:42:10 2013 +0200
@@ -48,7 +48,8 @@
         """
         Constructor
         """
-        super().__init__(None,
+        super().__init__(
+            None,
             Qt.X11BypassWindowManagerHint | Qt.WindowStaysOnTopHint |
             Qt.FramelessWindowHint | Qt.Tool)
         
@@ -85,7 +86,8 @@
                 self.__desktop.winId(), x, y,
                 self.__desktop.width(), self.__desktop.height())
         else:
-            self.__pixmap = QPixmap.grabWindow(self.__desktop.winId(), x, y,
+            self.__pixmap = QPixmap.grabWindow(
+                self.__desktop.winId(), x, y,
                 self.__desktop.width(), self.__desktop.height())
         self.resize(self.__pixmap.size())
         self.move(x, y)
@@ -146,7 +148,8 @@
             self.__helpTextRect.adjust(-2, -2, 4, 2)
             drawPolygon(painter, self.__helpTextRect, textColor,
                         textBackgroundColor)
-            painter.drawText(self.__helpTextRect.adjusted(3, 3, -3, -3),
+            painter.drawText(
+                self.__helpTextRect.adjusted(3, 3, -3, -3),
                 Qt.TextWordWrap, self.__helpText)
         
         if self.__selection.isEmpty():

eric ide

mercurial