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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 15 15:48:44 EDT 2008


Author: martinl
Date: 2008-05-15 15:48:44 -0400 (Thu, 15 May 2008)
New Revision: 31362

Modified:
   grass/branches/develbranch_6/gui/wxpython/wxgui.py
Log:
wxGUI: disable not available modules in menu

Modified: grass/branches/develbranch_6/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/wxgui.py	2008-05-15 19:30:26 UTC (rev 31361)
+++ grass/branches/develbranch_6/gui/wxpython/wxgui.py	2008-05-15 19:48:44 UTC (rev 31362)
@@ -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