Debugger/DebugUI.py

changeset 536
6d8d39753c82
parent 486
e4711a55e482
child 537
72b32daeb8d6
equal deleted inserted replaced
535:4b00d7336e19 536:6d8d39753c82
23 import Utilities 23 import Utilities
24 import UI.PixmapCache 24 import UI.PixmapCache
25 import UI.Config 25 import UI.Config
26 26
27 from E5Gui.E5Action import E5Action, createActionGroup 27 from E5Gui.E5Action import E5Action, createActionGroup
28 from E5Gui import E5MessageBox
28 29
29 from eric5config import getConfig 30 from eric5config import getConfig
30 31
31 class DebugUI(QObject): 32 class DebugUI(QObject):
32 """ 33 """
937 938
938 self.__resetUI() 939 self.__resetUI()
939 940
940 if not Preferences.getDebugger("SuppressClientExit") or status != 0: 941 if not Preferences.getDebugger("SuppressClientExit") or status != 0:
941 if self.ui.currentProg is None: 942 if self.ui.currentProg is None:
942 QMessageBox.information(self.ui,Program, 943 E5MessageBox.information(self.ui,Program,
943 self.trUtf8('<p>The program has terminated with an exit' 944 self.trUtf8('<p>The program has terminated with an exit'
944 ' status of {0}.</p>').format(status)) 945 ' status of {0}.</p>').format(status))
945 else: 946 else:
946 QMessageBox.information(self.ui,Program, 947 E5MessageBox.information(self.ui,Program,
947 self.trUtf8('<p><b>{0}</b> has terminated with an exit' 948 self.trUtf8('<p><b>{0}</b> has terminated with an exit'
948 ' status of {1}.</p>') 949 ' status of {1}.</p>')
949 .format(Utilities.normabspath(self.ui.currentProg), status)) 950 .format(Utilities.normabspath(self.ui.currentProg), status))
950 951
951 def __clientSyntaxError(self, message, filename, lineNo, characterNo): 952 def __clientSyntaxError(self, message, filename, lineNo, characterNo):
1053 1054
1054 @param unplanned True if the client died, False otherwise 1055 @param unplanned True if the client died, False otherwise
1055 """ 1056 """
1056 self.__resetUI() 1057 self.__resetUI()
1057 if unplanned: 1058 if unplanned:
1058 QMessageBox.information(self.ui,Program, 1059 E5MessageBox.information(self.ui,Program,
1059 self.trUtf8('The program being debugged has terminated unexpectedly.')) 1060 self.trUtf8('The program being debugged has terminated unexpectedly.'))
1060 1061
1061 def __getThreadList(self): 1062 def __getThreadList(self):
1062 """ 1063 """
1063 Private method to get the list of threads from the client. 1064 Private method to get the list of threads from the client.

eric ide

mercurial