--- a/eric6/Graphics/ClassItem.py Sat Sep 21 16:04:17 2019 +0200 +++ b/eric6/Graphics/ClassItem.py Sat Sep 21 17:41:22 2019 +0200 @@ -186,8 +186,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)