eric7/EricWidgets/EricSideBar.py

branch
eric7
changeset 8366
2a9f5153c438
parent 8358
144a6b854f70
child 8579
cfd0e44ef084
--- a/eric7/EricWidgets/EricSideBar.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/EricWidgets/EricSideBar.py	Sun May 23 15:35:49 2021 +0200
@@ -175,7 +175,9 @@
         """
         self.__minimized = True
         self.__bigSize = self.size()
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             self.__minSize = self.minimumSizeHint().height()
             self.__maxSize = self.maximumHeight()
         else:
@@ -186,7 +188,9 @@
         
         self.__stackedWidget.hide()
         
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             self.setFixedHeight(self.__tabBar.minimumSizeHint().height())
         else:
             self.setFixedWidth(self.__tabBar.minimumSizeHint().width())
@@ -208,7 +212,9 @@
         self.__minimized = False
         self.__stackedWidget.show()
         self.resize(self.__bigSize)
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             minSize = max(self.__minSize, self.minimumSizeHint().height())
             self.setMinimumHeight(minSize)
             self.setMaximumHeight(self.__maxSize)
@@ -287,7 +293,9 @@
             index = self.__tabBar.addTab(iconOrLabel)
             self.__tabBar.setTabToolTip(index, iconOrLabel)
         self.__stackedWidget.addWidget(widget)
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             self.__minSize = self.minimumSizeHint().height()
         else:
             self.__minSize = self.minimumSizeHint().width()
@@ -310,7 +318,9 @@
             index = self.__tabBar.insertTab(index, iconOrLabel)
             self.__tabBar.setTabToolTip(index, iconOrLabel)
         self.__stackedWidget.insertWidget(index, widget)
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             self.__minSize = self.minimumSizeHint().height()
         else:
             self.__minSize = self.minimumSizeHint().width()
@@ -323,7 +333,9 @@
         """
         self.__stackedWidget.removeWidget(self.__stackedWidget.widget(index))
         self.__tabBar.removeTab(index)
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             self.__minSize = self.minimumSizeHint().height()
         else:
             self.__minSize = self.minimumSizeHint().width()
@@ -610,7 +622,9 @@
         if not stateDict:
             return False
         
-        if self.__orientation in (EricSideBarSide.NORTH, EricSideBarSide.SOUTH):
+        if self.__orientation in (
+            EricSideBarSide.NORTH, EricSideBarSide.SOUTH
+        ):
             minSize = self.layout.minimumSize().height()
             maxSize = self.maximumHeight()
         else:

eric ide

mercurial