Hi, thinking that can be a good feature, I develop a simple patch that permit to disable the information message that eric show always when the debugger exit. My patch see if the option on preferences->debug->general are enabled and if the exit status are "clear" (0) it skip the message information.
Michele
DebuggerGeneralPage.ui
Description: application/designer
Index: Preferences/__init__.py =================================================================== --- Preferences/__init__.py (revisione 3405) +++ Preferences/__init__.py (copia locale) @@ -56,6 +56,7 @@ "AutomaticReset" : 0, "Autosave" : 0, "ThreeStateBreakPoints": 0, + "NotShowClearDebugExit": 0, "CustomPythonInterpreter" : 0, "PythonInterpreter" : "", "Python3Interpreter" : "", @@ -909,7 +910,8 @@ "Python3Redirect", "Python3NoEncoding", "RubyRedirect", "ConsoleDbgEnabled", "PathTranslation", - "Autosave", "ThreeStateBreakPoints"]: + "Autosave", "ThreeStateBreakPoints", + "NotShowClearDebugExit"]: return prefClass.settings.value("Debugger/" + key, QtCore.QVariant(prefClass.debuggerDefaults[key])).toInt()[0] Index: Preferences/ConfigurationPages/DebuggerGeneralPage.py =================================================================== --- Preferences/ConfigurationPages/DebuggerGeneralPage.py (revisione 3405) +++ Preferences/ConfigurationPages/DebuggerGeneralPage.py (copia locale) @@ -125,6 +125,8 @@ Preferences.getDebugger("PathTranslationLocal")) self.debugThreeStateBreakPoint.setChecked(\ Preferences.getDebugger("ThreeStateBreakPoints")) + self.debugNotShowClearDebugExit.setChecked(\ + Preferences.getDebugger("NotShowClearDebugExit")) def save(self): """ @@ -181,6 +183,8 @@ unicode(self.dbgTranslationLocalEdit.text())) Preferences.setDebugger("ThreeStateBreakPoints", int(self.debugThreeStateBreakPoint.isChecked())) + Preferences.setDebugger("NotShowClearDebugExit", + int(self.debugNotShowClearDebugExit.isChecked())) def on_allowedHostsList_currentItemChanged(self, current, previous): """ Index: Debugger/DebugUI.py =================================================================== --- Debugger/DebugUI.py (revisione 3405) +++ Debugger/DebugUI.py (copia locale) @@ -954,12 +954,16 @@ self.viewmanager.exit() self.__resetUI() - + if self.ui.currentProg is None: + if Preferences.getDebugger("NotShowClearDebugExit") and int(status) == 0: + return KQMessageBox.information(self.ui,Program, self.trUtf8('<p>The program has terminated with an exit' ' status of %1.</p>').arg(status)) else: + if Preferences.getDebugger("NotShowClearDebugExit") and int(status) == 0: + return KQMessageBox.information(self.ui,Program, self.trUtf8('<p><b>%1</b> has terminated with an exit status of %2.</p>') .arg(Utilities.normabspath(self.ui.currentProg))
_______________________________________________ Eric mailing list Eric@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/eric