[GRASS-SVN] r39929 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 6 16:35:36 EST 2009
Author: cmbarton
Date: 2009-12-06 16:35:36 -0500 (Sun, 06 Dec 2009)
New Revision: 39929
Modified:
grass/trunk/gui/wxpython/wxgui.py
Log:
Lets help/menu tree item double-clicking run commands. Backported from develbranch_6
Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py 2009-12-06 21:13:51 UTC (rev 39928)
+++ grass/trunk/gui/wxpython/wxgui.py 2009-12-06 21:35:36 UTC (rev 39929)
@@ -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 = ''):
More information about the grass-commit
mailing list