[GRASS-SVN] r31363 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 15 15:49:20 EDT 2008
Author: martinl
Date: 2008-05-15 15:49:19 -0400 (Thu, 15 May 2008)
New Revision: 31363
Modified:
grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: disable not available modules in menu (sync'ed with devbr6)
Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py 2008-05-15 19:48:44 UTC (rev 31362)
+++ grass/trunk/gui/wxpython/wxgui.py 2008-05-15 19:49:19 UTC (rev 31363)
@@ -270,6 +270,10 @@
self.menucmd[menuItem.GetId()] = gcmd
+ if len(gcmd) > 0 and \
+ gcmd not in globalvar.grassCmd['all']:
+ menuItem.Enable (False)
+
rhandler = eval(handler)
self.Bind(wx.EVT_MENU, rhandler, menuItem)
More information about the grass-commit
mailing list