[GRASS-dev] [GRASS GIS] #945: wxGUI: g.setproj fails on wingrass
GRASS GIS
trac at osgeo.org
Tue Feb 16 03:04:16 EST 2010
#945: wxGUI: g.setproj fails on wingrass
---------------------------------+------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Keywords: g.setproj, wingrass | Platform: MSWindows XP
Cpu: x86-32 |
---------------------------------+------------------------------------------
Hi,
(moved here from #693)
g.setproj fails on wxGUI wingrass 6.4.0.
the error is
{{{
Traceback (...):
File "c:/Program Files/GRASS-64-SVN/etc/wxpython/wxgui.py", line 991, in
OnXterm
xmon = xmonlist[0]
IndexError
:
list index out of range
}}}
the main problem here is that g.setproj wants a terminal but it doesn't
need a Xmon. So the menuform.xml hander should be changed to something
new.
Currently OnXterm has a function parameter of NeedXmon = True/False (or
something like that) which defaults to True. If we could figure out how to
pass that option = False as part of the XML menu tree it would solve it.
Alternatively we could split out a new handler function, but it would
mostly be duplication and only used for g.setproj.
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/945>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list