eric6/Debugger/DebugUI.py

changeset 7857
5cbae4f7e35a
parent 7849
70e464748aaa
child 7862
817ef8e0fa66
equal deleted inserted replaced
7854:dc28e707a0d9 7857:5cbae4f7e35a
1038 info = "" 1038 info = ""
1039 if self.ui.currentProg is None: 1039 if self.ui.currentProg is None:
1040 E5MessageBox.information( 1040 E5MessageBox.information(
1041 self.ui, Program, 1041 self.ui, Program,
1042 self.tr('<p>The program has terminated with an exit' 1042 self.tr('<p>The program has terminated with an exit'
1043 ' status of {0}.</p>{1}').format(status, info)) 1043 ' status of {0}.</p>{1}').format(status, info)
1044 )
1044 else: 1045 else:
1045 E5MessageBox.information( 1046 E5MessageBox.information(
1046 self.ui, Program, 1047 self.ui, Program,
1047 self.tr('<p><b>{0}</b> has terminated with an exit' 1048 self.tr('<p><b>{0}</b> has terminated with an exit'
1048 ' status of {1}.</p>{2}') 1049 ' status of {1}.</p>{2}').format(
1049 .format(os.path.abspath(self.ui.currentProg), 1050 os.path.abspath(self.ui.currentProg),
1050 status, info)) 1051 status, info)
1052 )
1051 else: 1053 else:
1052 if message: 1054 if message:
1053 info = self.tr("Message: {0}").format( 1055 info = self.tr("Message: {0}").format(
1054 Utilities.html_uencode(message)) 1056 Utilities.html_uencode(message))
1055 else: 1057 else:
1070 self.tr("Program terminated"), msg) 1072 self.tr("Program terminated"), msg)
1071 else: 1073 else:
1072 if self.ui.currentProg is None: 1074 if self.ui.currentProg is None:
1073 self.appendStdout.emit(self.tr( 1075 self.appendStdout.emit(self.tr(
1074 'The program has terminated with an exit status' 1076 'The program has terminated with an exit status'
1075 ' of {0}.\n{1}\n').format(status, info)) 1077 ' of {0}.\n{1}\n').format(status, info)
1078 )
1076 else: 1079 else:
1077 self.appendStdout.emit(self.tr( 1080 self.appendStdout.emit(self.tr(
1078 '"{0}" has terminated with an exit status of' 1081 '"{0}" has terminated with an exit status of'
1079 ' {1}.\n{2}\n').format( 1082 ' {1}.\n{2}\n').format(
1080 os.path.abspath(self.ui.currentProg), status, 1083 os.path.abspath(self.ui.currentProg), status,
1081 info)) 1084 info)
1085 )
1082 1086
1083 def __clientSyntaxError(self, message, filename, lineNo, characterNo): 1087 def __clientSyntaxError(self, message, filename, lineNo, characterNo):
1084 """ 1088 """
1085 Private method to handle a syntax error in the debugged program. 1089 Private method to handle a syntax error in the debugged program.
1086 1090

eric ide

mercurial