[GRASS-SVN] r39928 - grass/branches/develbranch_6/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 6 16:13:52 EST 2009


Author: cmbarton
Date: 2009-12-06 16:13:51 -0500 (Sun, 06 Dec 2009)
New Revision: 39928

Modified:
   grass/branches/develbranch_6/gui/wxpython/wxgui.py
Log:
Makes menu tree interface double clicking run commands

Modified: grass/branches/develbranch_6/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/wxgui.py	2009-12-06 20:59:03 UTC (rev 39927)
+++ grass/branches/develbranch_6/gui/wxpython/wxgui.py	2009-12-06 21:13:51 UTC (rev 39928)
@@ -453,9 +453,10 @@
 
         return cmdlist
 
-    def RunMenuCmd(self, event):
+    def RunMenuCmd(self, event, cmd = ''):
         """!Run command selected from menu"""
-        cmd = self.GetMenuCmd(event)
+        if event:
+            cmd = self.GetMenuCmd(event)
         self.goutput.RunCmd(cmd, switchPage=True)
 
     def OnMenuCmd(self, event, cmd = ''):
@@ -999,8 +1000,8 @@
 
             p = gcmd.Command(cmdlist)
 
-            # reset display mode
-            os.environ['GRASS_RENDER_IMMEDIATE'] = 'TRUE'
+        # reset display mode
+        os.environ['GRASS_RENDER_IMMEDIATE'] = 'TRUE'
         
     def OnPreferences(self, event):
         """!General GUI preferences/settings"""



More information about the grass-commit mailing list