--- a/eric7/Project/ProjectSourcesBrowser.py Sat May 22 17:01:51 2021 +0200 +++ b/eric7/Project/ProjectSourcesBrowser.py Sat May 22 18:51:46 2021 +0200 @@ -13,7 +13,7 @@ from PyQt6.QtCore import pyqtSignal from PyQt6.QtWidgets import QDialog, QInputDialog, QMenu -from E5Gui import E5MessageBox +from E5Gui import EricMessageBox from UI.BrowserModel import ( BrowserFileItem, BrowserClassItem, BrowserMethodItem, @@ -824,7 +824,7 @@ try: os.mkdir(packagePath) except OSError as err: - E5MessageBox.critical( + EricMessageBox.critical( self, self.tr("Add new Python package"), self.tr( @@ -839,7 +839,7 @@ with open(packageFile, "w", encoding="utf-8"): pass except OSError as err: - E5MessageBox.critical( + EricMessageBox.critical( self, self.tr("Add new Python package"), self.tr( @@ -1072,7 +1072,7 @@ fn = itm.fileName() except AttributeError: fn = itm.dirName() - res = E5MessageBox.yesNo( + res = EricMessageBox.yesNo( self, self.tr("Class Diagram"), self.tr("""Include class attributes?"""), @@ -1094,7 +1094,7 @@ except AttributeError: fn = itm.dirName() package = fn if os.path.isdir(fn) else os.path.dirname(fn) - res = E5MessageBox.yesNo( + res = EricMessageBox.yesNo( self, self.tr("Imports Diagram"), self.tr("""Include imports from external modules?""")) @@ -1115,7 +1115,7 @@ except AttributeError: fn = itm.dirName() package = fn if os.path.isdir(fn) else os.path.dirname(fn) - res = E5MessageBox.yesNo( + res = EricMessageBox.yesNo( self, self.tr("Package Diagram"), self.tr("""Include class attributes?"""), @@ -1131,7 +1131,7 @@ """ Private method to handle the application diagram context menu action. """ - res = E5MessageBox.yesNo( + res = EricMessageBox.yesNo( self, self.tr("Application Diagram"), self.tr("""Include module names?"""),