[GRASS-SVN] r44374 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 22 17:51:57 EST 2010


Author: martinl
Date: 2010-11-22 14:51:57 -0800 (Mon, 22 Nov 2010)
New Revision: 44374

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py
Log:
wxGUI: start raster map calculator from prompt


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py	2010-11-22 22:13:57 UTC (rev 44373)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/prompt.py	2010-11-22 22:51:57 UTC (rev 44374)
@@ -737,10 +737,14 @@
         
         cmd = text.split()[0]
         if not self.cmdDesc or cmd != self.cmdDesc.get_name():
-            try:
-                self.cmdDesc = menuform.GUI().ParseInterface(cmd = [cmd])
-            except IOError:
-                self.cmdDesc = None
+            if cmd in ('r.mapcalc', 'r3.mapcalc'):
+                self.parent.parent.OnMapCalculator(event = None, cmd = [cmd])
+                self.OnCmdErase(None)
+            else:
+                try:
+                    self.cmdDesc = menuform.GUI().ParseInterface(cmd = [cmd])
+                except IOError:
+                    self.cmdDesc = None
         
     def OnKeyPressed(self, event):
         """!Key press capture for autocompletion, calltips, and command history



More information about the grass-commit mailing list