Graphics/AssociationItem.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
diff -r 1b59c4ba121e -r 8cd4d08fa9f6 Graphics/AssociationItem.py
--- a/Graphics/AssociationItem.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/Graphics/AssociationItem.py	Fri Mar 11 16:51:57 2011 +0100
@@ -27,6 +27,7 @@
 SouthWest = 8
 Center = 9
 
+
 class AssociationItem(E5ArrowItem):
     """
     Class implementing a graphics item for an association between two items.
@@ -34,7 +35,7 @@
     The association is drawn as an arrow starting at the first items and
     ending at the second.
     """
-    def __init__(self, itemA, itemB, type = Normal, parent = None):
+    def __init__(self, itemA, itemB, type=Normal, parent=None):
         """
         Constructor
         
@@ -58,7 +59,7 @@
             arrowType = WideArrow
             arrowFilled = False
         
-        E5ArrowItem.__init__(self, QPointF(0, 0), QPointF(100, 100), 
+        E5ArrowItem.__init__(self, QPointF(0, 0), QPointF(100, 100),
             arrowFilled, arrowType, parent)
         
         self.setFlag(QGraphicsItem.ItemIsMovable, False)
@@ -141,7 +142,7 @@
         Each diagonal is defined by two corners of the bounding rectangle
         
         To calculate the start point  we have to find out in which
-        region (defined by itemA's diagonals) is itemB's TopLeft corner 
+        region (defined by itemA's diagonals) is itemB's TopLeft corner
         (lets call it region M). After that the start point will be
         the middle point of rectangle's side contained in region M.
         
@@ -197,7 +198,7 @@
         
     def __findPointRegion(self, rect, posX, posY):
         """
-        Private method to find out, which region of rectangle rect contains the point 
+        Private method to find out, which region of rectangle rect contains the point
         (PosX, PosY) and returns the region number.
         
         @param rect rectangle to calculate the region for (QRectF)

eric ide

mercurial