E5Graphics/E5ArrowItem.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
--- a/E5Graphics/E5ArrowItem.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/E5Graphics/E5ArrowItem.py	Fri Mar 11 16:51:57 2011 +0100
@@ -17,12 +17,13 @@
 
 ArrowheadAngleFactor = 0.26179938779914941  # 0.5 * atan(sqrt(3.0) / 3.0)
 
+
 class E5ArrowItem(QAbstractGraphicsShapeItem):
     """
     Class implementing an arrow graphics item subclass.
     """
-    def __init__(self, origin = QPointF(), end = QPointF(),
-                 filled = False, type = NormalArrow, parent = None):
+    def __init__(self, origin=QPointF(), end=QPointF(),
+                 filled=False, type=NormalArrow, parent=None):
         """
         Constructor
         
@@ -92,7 +93,7 @@
             .normalized()\
             .adjusted(-extra, -extra, extra, extra)
         
-    def paint(self, painter, option, widget = None):
+    def paint(self, painter, option, widget=None):
         """
         Public method to paint the item in local coordinates.
         
@@ -132,4 +133,4 @@
         polygon.append(line.p2())
         polygon.append(a1)
         polygon.append(a2)
-        painter.drawPolygon(polygon)
\ No newline at end of file
+        painter.drawPolygon(polygon)

eric ide

mercurial