RefactoringRope/HelpDialog.py

branch
eric7
changeset 389
4f53795beff0
parent 377
5a183579f5ef
child 396
933b8fcd854f
diff -r cb044ec27c24 -r 4f53795beff0 RefactoringRope/HelpDialog.py
--- a/RefactoringRope/HelpDialog.py	Sat Jun 25 18:06:56 2022 +0200
+++ b/RefactoringRope/HelpDialog.py	Wed Sep 21 15:30:34 2022 +0200
@@ -19,10 +19,11 @@
     """
     Class implementing a dialog to show help about rope.
     """
+
     def __init__(self, title, helpfile, parent=None):
         """
         Constructor
-        
+
         @param title window title
         @type str
         @param helpfile filename of the helpfile
@@ -33,19 +34,21 @@
         QDialog.__init__(self, parent)
         self.setupUi(self)
         self.setWindowFlags(Qt.WindowType.Window)
-        
+
         if Globals.isWindowsPlatform():
             self.helpEdit.setFontFamily("Lucida Console")
         else:
             self.helpEdit.setFontFamily("Monospace")
-        
+
         try:
             with open(helpfile, "r", encoding="utf-8") as f:
                 txt = f.read()
             self.helpEdit.setPlainText(txt)
         except OSError as err:
             self.helpEdit.setPlainText(
-                self.tr("Could not read file {0}.\nReason: {1}")
-                    .format(helpfile, str(err)))
-        
+                self.tr("Could not read file {0}.\nReason: {1}").format(
+                    helpfile, str(err)
+                )
+            )
+
         self.searchWidget.attachTextEdit(self.helpEdit)

eric ide

mercurial