--- a/RefactoringRope/ErrorDialog.py Sat Jun 25 18:06:56 2022 +0200 +++ b/RefactoringRope/ErrorDialog.py Wed Sep 21 15:30:34 2022 +0200 @@ -18,10 +18,11 @@ Class implementing a dialog to show an error message and optionally a traceback. """ + def __init__(self, title, errorMessage, traceback=None, parent=None): """ Constructor - + @param title title of the dialog @type str @param errorMessage error message to be shown @@ -33,14 +34,13 @@ """ super().__init__(parent) self.setupUi(self) - + self.tracebackEdit.hide() - + self.setWindowTitle(title) self.errorMessageLabel.setText(errorMessage) if traceback: tbIntro = self.tr("Traceback (most recent call first):\n\n") - self.tracebackEdit.setPlainText( - tbIntro + "\n".join(reversed(traceback))) + self.tracebackEdit.setPlainText(tbIntro + "\n".join(reversed(traceback))) else: self.tracebackEdit.setEnabled(False)