957 E5MessageBox.information(self.ui, Program, |
957 E5MessageBox.information(self.ui, Program, |
958 self.trUtf8('<p><b>{0}</b> has terminated with an exit' |
958 self.trUtf8('<p><b>{0}</b> has terminated with an exit' |
959 ' status of {1}.</p>') |
959 ' status of {1}.</p>') |
960 .format(Utilities.normabspath(self.ui.currentProg), status)) |
960 .format(Utilities.normabspath(self.ui.currentProg), status)) |
961 else: |
961 else: |
962 if self.ui.currentProg is None: |
962 if self.ui.notificationsEnabled(): |
963 self.appendStdout.emit( |
963 if self.ui.currentProg is None: |
964 self.trUtf8('The program has terminated with an exit' |
964 msg = self.trUtf8('The program has terminated with an exit' |
965 ' status of {0}.\n').format(status)) |
965 ' status of {0}.\n').format(status) |
|
966 else: |
|
967 msg = self.trUtf8('"{0}" has terminated with an exit' |
|
968 ' status of {1}.\n')\ |
|
969 .format(Utilities.normabspath(self.ui.currentProg), status) |
|
970 self.ui.showNotification(UI.PixmapCache.getPixmap("debug48.png"), |
|
971 self.trUtf8("Program terminated"), msg) |
966 else: |
972 else: |
967 self.appendStdout.emit( |
973 if self.ui.currentProg is None: |
968 self.trUtf8('"{0}" has terminated with an exit' |
974 self.appendStdout.emit( |
969 ' status of {1}.\n') |
975 self.trUtf8('The program has terminated with an exit' |
970 .format(Utilities.normabspath(self.ui.currentProg), status)) |
976 ' status of {0}.\n').format(status)) |
|
977 else: |
|
978 self.appendStdout.emit( |
|
979 self.trUtf8('"{0}" has terminated with an exit' |
|
980 ' status of {1}.\n') |
|
981 .format(Utilities.normabspath(self.ui.currentProg), status)) |
971 |
982 |
972 def __clientSyntaxError(self, message, filename, lineNo, characterNo): |
983 def __clientSyntaxError(self, message, filename, lineNo, characterNo): |
973 """ |
984 """ |
974 Private method to handle a syntax error in the debugged program. |
985 Private method to handle a syntax error in the debugged program. |
975 |
986 |