--- a/eric7/Debugger/DebugServer.py Sat May 22 17:01:51 2021 +0200 +++ b/eric7/Debugger/DebugServer.py Sat May 22 18:51:46 2021 +0200 @@ -16,8 +16,8 @@ QTcpServer, QHostAddress, QHostInfo, QNetworkInterface ) -from E5Gui.E5Application import e5App -from E5Gui import E5MessageBox +from E5Gui.EricApplication import ericApp +from E5Gui import EricMessageBox from .BreakPointModel import BreakPointModel from .WatchPointModel import WatchPointModel @@ -353,7 +353,7 @@ @type bool """ if interfaceName in self.__debuggerInterfaces and not reregister: - E5MessageBox.warning( + EricMessageBox.warning( None, self.tr("Register Debugger Interface"), self.tr("""<p>The debugger interface <b>{0}</b> has already""" @@ -534,7 +534,7 @@ self.__forProject = forProject self.__createDebuggerInterface() if forProject: - project = e5App().getObject("Project") + project = ericApp().getObject("Project") if not project.isDebugPropertiesLoaded(): self.clientProcess, isNetworked, clientInterpreter = ( self.debuggerInterface.startRemote( @@ -875,14 +875,14 @@ peerAddress = sock.peerAddress().toString() if peerAddress not in Preferences.getDebugger("AllowedHosts"): # the peer is not allowed to connect - res = E5MessageBox.yesNo( + res = EricMessageBox.yesNo( None, self.tr("Connection from illegal host"), self.tr( """<p>A connection was attempted by the illegal host""" """ <b>{0}</b>. Accept this connection?</p>""") .format(peerAddress), - icon=E5MessageBox.Warning) + icon=EricMessageBox.Warning) if not res: sock.abort() return @@ -993,7 +993,7 @@ if clientType not in self.getSupportedLanguages(): # a not supported client language was requested - E5MessageBox.critical( + EricMessageBox.critical( None, self.tr("Start Debugger"), self.tr( @@ -1061,7 +1061,7 @@ self.__autoClearShell = autoClearShell if clientType not in self.getSupportedLanguages(): - E5MessageBox.critical( + EricMessageBox.critical( None, self.tr("Start Debugger"), self.tr( @@ -1127,7 +1127,7 @@ if clientType not in self.getSupportedLanguages(): # a not supported client language was requested - E5MessageBox.critical( + EricMessageBox.critical( None, self.tr("Start Debugger"), self.tr( @@ -1192,7 +1192,7 @@ if clientType not in self.getSupportedLanguages(): # a not supported client language was requested - E5MessageBox.critical( + EricMessageBox.critical( None, self.tr("Start Debugger"), self.tr( @@ -1560,7 +1560,7 @@ """ if clientType and clientType not in self.getSupportedLanguages(): # a not supported client language was requested - E5MessageBox.critical( + EricMessageBox.critical( None, self.tr("Start Debugger"), self.tr( @@ -1624,7 +1624,7 @@ """ if clientType and clientType not in self.getSupportedLanguages(): # a not supported client language was requested - E5MessageBox.critical( + EricMessageBox.critical( None, self.tr("Start Debugger"), self.tr(