src/eric7/EricWidgets/EricPlainTextDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
--- a/src/eric7/EricWidgets/EricPlainTextDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/EricWidgets/EricPlainTextDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -18,10 +18,11 @@
     """
     Class implementing a dialog to show some plain text.
     """
+
     def __init__(self, title="", text="", readOnly=True, parent=None):
         """
         Constructor
-        
+
         @param title title of the dialog (defaults to "")
         @type str (optional)
         @param text text to be shown (defaults to "")
@@ -33,16 +34,16 @@
         """
         super().__init__(parent)
         self.setupUi(self)
-        
+
         self.copyButton = self.buttonBox.addButton(
-            self.tr("Copy to Clipboard"),
-            QDialogButtonBox.ButtonRole.ActionRole)
+            self.tr("Copy to Clipboard"), QDialogButtonBox.ButtonRole.ActionRole
+        )
         self.copyButton.clicked.connect(self.on_copyButton_clicked)
-        
+
         self.setWindowTitle(title)
         self.textEdit.setPlainText(text)
         self.textEdit.setReadOnly(readOnly)
-    
+
     @pyqtSlot()
     def on_copyButton_clicked(self):
         """
@@ -51,11 +52,11 @@
         txt = self.textEdit.toPlainText()
         cb = QGuiApplication.clipboard()
         cb.setText(txt)
-    
+
     def toPlainText(self):
         """
         Public method to get the plain text.
-        
+
         @return contents of the plain text edit
         @rtype str
         """

eric ide

mercurial