--- a/eric6/E5Graphics/E5ArrowItem.py Sat Sep 21 13:37:58 2019 +0200 +++ b/eric6/E5Graphics/E5ArrowItem.py Sat Sep 21 15:37:43 2019 +0200 @@ -92,9 +92,8 @@ """ extra = self._halfLength / 2.0 return QRectF(self._origin, QSizeF(self._end.x() - self._origin.x(), - self._end.y() - self._origin.y()))\ - .normalized()\ - .adjusted(-extra, -extra, extra, extra) + self._end.y() - self._origin.y()) + ).normalized().adjusted(-extra, -extra, extra, extra) def paint(self, painter, option, widget=None): """ @@ -104,8 +103,10 @@ @param option style options (QStyleOptionGraphicsItem) @param widget optional reference to the widget painted on (QWidget) """ - if (option.state & QStyle.State_Selected) == \ - QStyle.State(QStyle.State_Selected): + if ( + (option.state & QStyle.State_Selected) == + QStyle.State(QStyle.State_Selected) + ): width = 2 else: width = 1