src/eric7/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/ProjectHelper.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/ProjectHelper.py
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/ProjectHelper.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/ProjectHelper.py	Wed Jul 13 14:55:47 2022 +0200
@@ -20,36 +20,43 @@
     """
     Class implementing the closehead extension project helper.
     """
+
     def __init__(self):
         """
         Constructor
         """
         super().__init__()
-    
+
     def initActions(self):
         """
         Public method to generate the action objects.
         """
         self.hgCloseheadAct = EricAction(
-            self.tr('Close Heads'),
+            self.tr("Close Heads"),
             UI.PixmapCache.getIcon("closehead"),
-            self.tr('Close Heads'),
-            0, 0, self, 'mercurial_closehead')
-        self.hgCloseheadAct.setStatusTip(self.tr(
-            'Close arbitrary heads without checking them out first'
-        ))
-        self.hgCloseheadAct.setWhatsThis(self.tr(
-            """<b>Close Heads</b>"""
-            """<p>This closes arbitrary heads without the need to check them"""
-            """ out first.</p>"""
-        ))
+            self.tr("Close Heads"),
+            0,
+            0,
+            self,
+            "mercurial_closehead",
+        )
+        self.hgCloseheadAct.setStatusTip(
+            self.tr("Close arbitrary heads without checking them out first")
+        )
+        self.hgCloseheadAct.setWhatsThis(
+            self.tr(
+                """<b>Close Heads</b>"""
+                """<p>This closes arbitrary heads without the need to check them"""
+                """ out first.</p>"""
+            )
+        )
         self.hgCloseheadAct.triggered.connect(self.__hgClosehead)
         self.actions.append(self.hgCloseheadAct)
-    
+
     def initMenu(self, mainMenu):
         """
         Public method to generate the extension menu.
-        
+
         @param mainMenu reference to the main menu
         @type QMenu
         @return populated menu (QMenu)
@@ -57,20 +64,20 @@
         menu = QMenu(self.menuTitle(), mainMenu)
         menu.setIcon(UI.PixmapCache.getIcon("closehead"))
         menu.setTearOffEnabled(True)
-        
+
         menu.addAction(self.hgCloseheadAct)
-        
+
         return menu
-    
+
     def menuTitle(self):
         """
         Public method to get the menu title.
-        
+
         @return title of the menu
         @rtype str
         """
         return self.tr("Close Heads")
-    
+
     def __hgClosehead(self):
         """
         Private slot used to close arbitrary heads.

eric ide

mercurial