eric6/E5Gui/E5ToolBarManager.py

changeset 7252
c5e3705073eb
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/E5Gui/E5ToolBarManager.py	Sat Sep 21 13:37:58 2019 +0200
+++ b/eric6/E5Gui/E5ToolBarManager.py	Sat Sep 21 15:37:43 2019 +0200
@@ -227,8 +227,11 @@
         toRemove = {}
         newActions = []
         for action in actions:
-            if action is None or \
-               (action not in newActions and id(action) in self.__allActions):
+            if (
+                action is None or
+                (action not in newActions and
+                 id(action) in self.__allActions)
+            ):
                 newActions.append(action)
             oldTB = self.toolBarWidgetAction(action)
             if oldTB is not None and oldTB != toolBar:
@@ -302,8 +305,10 @@
         @param toolBar reference to the toolbar to be checked (QToolBar)
         @return flag indicating an added toolbar (boolean)
         """
-        return toolBar is not None and \
+        return (
+            toolBar is not None and
             id(toolBar) in self.__defaultToolBars
+        )
     
     def createToolBar(self, title, name=""):
         """
@@ -625,8 +630,10 @@
             
             removedActions = []
             for action in actions[tbID]:
-                if action in newActions and \
-                        self.toolBarWidgetAction(action) == toolBar:
+                if (
+                    action in newActions and
+                    self.toolBarWidgetAction(action) == toolBar
+                ):
                     newActions.remove(action)
                     newActionsWithSeparators.remove(action)
                     removedActions.append(action)

eric ide

mercurial