E5Gui/E5ToolBarManager.py

changeset 945
8cd4d08fa9f6
parent 930
95309225005e
child 1112
8a7d1b9d18db
--- a/E5Gui/E5ToolBarManager.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/E5Gui/E5ToolBarManager.py	Fri Mar 11 16:51:57 2011 +0100
@@ -10,6 +10,7 @@
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 
+
 class E5ToolBarManager(QObject):
     """
     Class implementing a toolbar manager.
@@ -18,7 +19,7 @@
     ToolBarMarker = 0xfefe
     CustomToolBarMarker = 0xfdfd
     
-    def __init__(self, ui = None, parent = None):
+    def __init__(self, ui=None, parent=None):
         """
         Constructor
         
@@ -31,7 +32,7 @@
         self.__ui = ui
         
         self.__toolBars = {}            # maps toolbar IDs to actions
-        self.__toolBarsWithSeparators = {} # maps toolbar IDs to actions incl. separators
+        self.__toolBarsWithSeparators = {}  # maps toolbar IDs to actions incl. separators
         self.__defaultToolBars = {}     # maps default toolbar IDs to actions
         self.__customToolBars = []      # list of custom toolbars
         self.__allToolBars = {}         # maps toolbar IDs to toolbars
@@ -434,7 +435,7 @@
             if action in self.__categoryToActions[category]:
                 self.__categoryToActions[category].remove(action)
     
-    def saveState(self, version = 0):
+    def saveState(self, version=0):
         """
         Public method to save the state of the toolbar manager.
         
@@ -485,7 +486,7 @@
         
         return data
     
-    def restoreState(self, state, version = 0):
+    def restoreState(self, state, version=0):
         """
         Public method to restore the state of the toolbar manager.
         

eric ide

mercurial