Graphics/PackageItem.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2992
dbdf27746da5
child 3145
a9de05d4a22f
--- a/Graphics/PackageItem.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Graphics/PackageItem.py	Fri Oct 18 23:00:41 2013 +0200
@@ -123,7 +123,8 @@
             height = height + self.modules.boundingRect().height()
         latchW = width / 3.0
         latchH = min(15.0, latchW)
-        self.setSize(width + 2 * self.margin, height + latchH + 2 * self.margin)
+        self.setSize(width + 2 * self.margin,
+                     height + latchH + 2 * self.margin)
         
         x = self.margin + self.rect().x()
         y = self.margin + self.rect().y() + latchH
@@ -156,7 +157,8 @@
         @param widget optional reference to the widget painted on (QWidget)
         """
         pen = self.pen()
-        if (option.state & QStyle.State_Selected) == QStyle.State(QStyle.State_Selected):
+        if (option.state & QStyle.State_Selected) == \
+                QStyle.State(QStyle.State_Selected):
             pen.setWidth(2)
         else:
             pen.setWidth(1)
@@ -184,8 +186,8 @@
         Public method to build a string to persist the specific item data.
         
         This string must start with ", " and should be built like
-        "attribute=value" with pairs separated by ", ". value must not contain ", "
-        or newlines.
+        "attribute=value" with pairs separated by ", ". value must not
+        contain ", " or newlines.
         
         @return persistence data (string)
         """

eric ide

mercurial