src/eric7/Project/Project.py

branch
eric7
changeset 9436
731d146193e2
parent 9426
e2a52d98ad20
child 9442
906485dcd210
child 9453
e5065dde905d
diff -r 15992d83352b -r 731d146193e2 src/eric7/Project/Project.py
--- a/src/eric7/Project/Project.py	Wed Oct 26 17:32:49 2022 +0200
+++ b/src/eric7/Project/Project.py	Wed Oct 26 18:47:23 2022 +0200
@@ -57,6 +57,7 @@
 from eric7.Tasks.TasksFile import TasksFile
 
 from eric7.CodeFormatting.BlackFormattingAction import BlackFormattingAction
+from eric7.CodeFormatting.BlackUtilities import aboutBlack
 
 
 class Project(QObject):
@@ -4886,7 +4887,7 @@
                 "<p>This shows some information about the installed 'Black' tool.</p>"
             )
         )
-        self.blackAboutAct.triggered.connect(self.__aboutBlack)
+        self.blackAboutAct.triggered.connect(aboutBlack)
         self.actions.append(self.blackAboutAct)
         font = self.blackAboutAct.font()
         font.setBold(True)
@@ -6737,23 +6738,6 @@
         """
         self.showMenu.emit("Formatting", self.formattingMenu)
 
-    @pyqtSlot()
-    def __aboutBlack(self):
-        """
-        Private slot to show some information about the installed 'Black' tool.
-        """
-        import black
-
-        EricMessageBox.information(
-            None,
-            self.tr("About Black"),
-            self.tr(
-                """<p><b>Black Version {0}</b></p>"""
-                """<p><i>Black</i> is the uncompromising Python code"""
-                """ formatter.</p>"""
-            ).format(black.__version__),
-        )
-
     def __performFormatWithBlack(self, action):
         """
         Private method to format the project sources using the 'Black' tool.

eric ide

mercurial