eric6/Debugger/DebugUI.py

branch
multi_processing
changeset 7876
9164a5c0d4a6
parent 7874
8dcb77600690
child 7897
9acc015ea443
diff -r 12c621ed4377 -r 9164a5c0d4a6 eric6/Debugger/DebugUI.py
--- a/eric6/Debugger/DebugUI.py	Mon Dec 14 19:59:03 2020 +0100
+++ b/eric6/Debugger/DebugUI.py	Tue Dec 15 18:07:56 2020 +0100
@@ -153,7 +153,21 @@
         
         # Set a flag for the passive debug mode
         self.passive = Preferences.getDebugger("PassiveDbgEnabled")
+    
+    def showNotification(self, notification):
+        """
+        Public method to show some notification message.
         
+        @param notification meessage to be shown
+        @type str
+        """
+        if self.ui.notificationsEnabled():
+            self.ui.showNotification(
+                UI.PixmapCache.getPixmap("debug48"),
+                self.tr("Notification"), notification)
+        else:
+            self.appendStdout.emit(notification)
+    
     def variablesFilter(self, scope):
         """
         Public method to get the variables filter for a scope.

eric ide

mercurial