[GRASS-SVN] r59067 - grass/trunk/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 16 07:02:27 PST 2014


Author: annakrat
Date: 2014-02-16 07:02:27 -0800 (Sun, 16 Feb 2014)
New Revision: 59067

Modified:
   grass/trunk/gui/wxpython/modules/mcalc_builder.py
Log:
wxGUI/mapcalc: display correct command in statusbar

Modified: grass/trunk/gui/wxpython/modules/mcalc_builder.py
===================================================================
--- grass/trunk/gui/wxpython/modules/mcalc_builder.py	2014-02-16 12:10:45 UTC (rev 59066)
+++ grass/trunk/gui/wxpython/modules/mcalc_builder.py	2014-02-16 15:02:27 UTC (rev 59067)
@@ -443,8 +443,11 @@
     def OnUpdateStatusBar(self, event):
         """!Update statusbar text"""
         expr = self.text_mcalc.GetValue().strip().replace("\n", " ")
-        self.SetStatusText("r.mapcalc '%s = %s'" % (self.newmaptxt.GetValue(),
-                                                    expr))
+        cmd = 'r.mapcalc'
+        if self.rast3d:
+            cmd = 'r3.mapcalc'
+        self.SetStatusText("{cmd} '{new} = {expr}'".format(cmd=cmd, expr=expr,
+                                                           new=self.newmaptxt.GetValue()))
         event.Skip()
         
     def _addSomething(self, what):



More information about the grass-commit mailing list