[GRASS-SVN] r49472 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 1 17:59:13 EST 2011


Author: martinl
Date: 2011-12-01 14:59:13 -0800 (Thu, 01 Dec 2011)
New Revision: 49472

Modified:
   grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: layer tree - launch r.univar command instead showing dialog


Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py	2011-12-01 22:51:12 UTC (rev 49471)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py	2011-12-01 22:59:13 UTC (rev 49472)
@@ -562,9 +562,8 @@
     def OnUnivariateStats(self, event):
         """!Univariate raster statistics"""
         name = self.GetPyData(self.layer_selected)[0]['maplayer'].GetName()
-        GUI(parent = self).ParseCommand(['r.univar',
-                                         'map=%s' % name])
-
+        self.lmgr.goutput.RunCmd(['r.univar', 'map=%s' % name], switchPage = True)
+        
     def OnStartEditing(self, event):
         """!Start editing vector map layer requested by the user
         """



More information about the grass-commit mailing list