--- a/eric7/Preferences/SubstyleDefinitionDialog.py Sat May 22 17:01:51 2021 +0200 +++ b/eric7/Preferences/SubstyleDefinitionDialog.py Sat May 22 18:51:46 2021 +0200 @@ -10,7 +10,7 @@ from PyQt6.QtCore import pyqtSlot from PyQt6.QtWidgets import QDialog, QDialogButtonBox -from E5Gui import E5MessageBox +from E5Gui import EricMessageBox from .Ui_SubstyleDefinitionDialog import Ui_SubstyleDefinitionDialog @@ -79,7 +79,7 @@ """ Private slot to reset the dialog contents. """ - ok = E5MessageBox.yesNo( + ok = EricMessageBox.yesNo( self, self.tr("Reset Sub-Style Data"), self.tr("""Shall the entered sub-style data be reset?""")) @@ -103,7 +103,7 @@ bool(self.wordsEdit.toPlainText().strip()) ) ok = ( - E5MessageBox.yesNo( + EricMessageBox.yesNo( self, self.tr("Set Sub-Style Data to Default"), self.tr("""Shall the sub-style data be set to default"""