eric6/Graphics/UMLItem.py

changeset 7254
f00d825fbdb3
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r 50dbe65a1334 -r f00d825fbdb3 eric6/Graphics/UMLItem.py
--- a/eric6/Graphics/UMLItem.py	Sat Sep 21 16:04:17 2019 +0200
+++ b/eric6/Graphics/UMLItem.py	Sat Sep 21 17:41:22 2019 +0200
@@ -184,8 +184,10 @@
         @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)

eric ide

mercurial