[GRASS-SVN] r53927 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 19 14:09:35 PST 2012


Author: annakrat
Date: 2012-11-19 14:09:35 -0800 (Mon, 19 Nov 2012)
New Revision: 53927

Modified:
   grass/trunk/gui/wxpython/gui_core/goutput.py
Log:
wxGUI/GConsole: replace SetStatusText by event

Modified: grass/trunk/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/goutput.py	2012-11-19 22:01:42 UTC (rev 53926)
+++ grass/trunk/gui/wxpython/gui_core/goutput.py	2012-11-19 22:09:35 UTC (rev 53927)
@@ -39,6 +39,7 @@
 from core            import globalvar
 from core            import utils
 from core.gcmd       import CommandThread, GMessage, GError, GException, EncodeString
+from core.events     import gShowNotification
 from gui_core.forms  import GUI
 from gui_core.prompt import GPromptSTC
 from core.debug      import Debug
@@ -732,7 +733,8 @@
                 GError(_("Unable to write file '%(path)s'.\n\nDetails: %(error)s") % {'path': path, 'error': e})
             finally:
                 output.close()
-            self.frame.SetStatusText(_("Commands output saved into '%s'") % path)
+            message = _("Commands output saved into '%s'") % path
+            wx.PostEvent(self, gShowNotification(self.GetId(), message = message))
         
         dlg.Destroy()
 
@@ -786,8 +788,9 @@
                     {'filePath': self.cmdFileProtocol, 'error': e})
         finally:
             output.close()
-            
-        self.frame.SetStatusText(_("Commands protocol saved into '%s'") % self.cmdFileProtocol)
+        
+        message = _("Commands protocol saved into '%s'") % self.cmdFileProtocol
+        wx.PostEvent(self, gShowNotification(self.GetId(), message = message))
         del self.cmdFileProtocol
         
     def OnCmdProtocol(self, event = None):



More information about the grass-commit mailing list