[GRASS-SVN] r29965 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 6 00:26:24 EST 2008
Author: cmbarton
Date: 2008-02-06 00:26:24 -0500 (Wed, 06 Feb 2008)
New Revision: 29965
Modified:
grass/trunk/gui/wxpython/wxgui.py
Log:
Fixed broken menu command operation. Need to look at commented section in GetMenuCmd method and see what needs to be done to make this work.
Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py 2008-02-06 02:43:10 UTC (rev 29964)
+++ grass/trunk/gui/wxpython/wxgui.py 2008-02-06 05:26:24 UTC (rev 29965)
@@ -406,14 +406,15 @@
except: # already list?
cmdlist = cmd
- layer = self.curr_page.maptree.layer_selected
- name = self.curr_page.maptree.GetPyData(layer)[0]['maplayer'].name
- type = self.curr_page.maptree.GetPyData(layer)[0]['type']
- if len(cmdlist) == 1: # only if no paramaters given
- if type == 'raster' and cmdlist[0][0] == 'r' and cmdlist[0][1] != '3':
- cmdlist.append(name) # TODO map/input=
- elif type == 'vector' and cmdlist[0][0] == 'v':
- cmdlist.append(name) # TODO map/input=
+ # This section is not completed and breaks the menu. Uncomment when completed and tested
+ #layer = self.curr_page.maptree.layer_selected
+ #name = self.curr_page.maptree.GetPyData(layer)[0]['maplayer'].name
+ #type = self.curr_page.maptree.GetPyData(layer)[0]['type']
+ #if len(cmdlist) == 1: # only if no paramaters given
+ # if type == 'raster' and cmdlist[0][0] == 'r' and cmdlist[0][1] != '3':
+ # cmdlist.append(name) # TODO map/input=
+ # elif type == 'vector' and cmdlist[0][0] == 'v':
+ # cmdlist.append(name) # TODO map/input=
return cmdlist
More information about the grass-commit
mailing list