eric6/E5Gui/E5SideBar.py

changeset 7252
c5e3705073eb
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r bc5b1b00560a -r c5e3705073eb eric6/E5Gui/E5SideBar.py
--- a/eric6/E5Gui/E5SideBar.py	Sat Sep 21 13:37:58 2019 +0200
+++ b/eric6/E5Gui/E5SideBar.py	Sat Sep 21 15:37:43 2019 +0200
@@ -8,10 +8,12 @@
 """
 
 
-from PyQt5.QtCore import QEvent, QSize, Qt, QByteArray, QDataStream, \
-    QIODevice, QTimer
-from PyQt5.QtWidgets import QTabBar, QWidget, QStackedWidget, QBoxLayout, \
-    QToolButton, QSizePolicy
+from PyQt5.QtCore import (
+    QEvent, QSize, Qt, QByteArray, QDataStream, QIODevice, QTimer
+)
+from PyQt5.QtWidgets import (
+    QTabBar, QWidget, QStackedWidget, QBoxLayout, QToolButton, QSizePolicy
+)
 
 from E5Gui.E5Application import e5App
 
@@ -659,8 +661,11 @@
         """
         if isinstance(now, QWidget):
             self.__hasFocus = self.isAncestorOf(now)
-            if self.__autoHide and not self.__hasFocus and \
-                    not self.isMinimized():
+            if (
+                self.__autoHide and
+                not self.__hasFocus and
+                not self.isMinimized()
+            ):
                 self.shrink()
             elif self.__autoHide and self.__hasFocus and self.isMinimized():
                 self.expand()

eric ide

mercurial