[GRASSGUI] testing wxgrass
Michael Barton
michael.barton at asu.edu
Tue Mar 27 10:32:16 EDT 2007
Moritz,
Thanks very much for the testing. I'm only responding to a couple of items
since I'm going to try to go into my office today.
On 3/27/07 5:16 AM, "Moritz Lennert" <mlennert at club.worldonline.be> wrote:
> - When I add a raster or vector file, I get:
>
> Traceback (most recent call last):
> File "/usr/lib/grass/etc/wx/gui_modules/wxgui_utils.py", line 311, in
> onExpandNode
> if self.layertype[self.layer_selected] == 'group':
> KeyError: <wx._controls.TreeItemId; proxy of <Swig Object of type
> 'wxTreeItemId *' at 0x8899f18> >
>
> but I do get the layer options (d.rast/d.vect) dialog and can display a map.
>
>
> - Contrary to what I said before, I still have a problem displaying
> several layers. I can add a first layer, but when I try to add a second
> layer, I get the following error message, the second layer is unusable
> (only transparency field visible, see attached image), and I cannot
> erase it either:
>
> Traceback (most recent call last):
> File "/usr/lib/grass/etc/wx/wxgui.py", line 460, in addVector
> self.SetTree('vector')
> File "/usr/lib/grass/etc/wx/wxgui.py", line 487, in SetTree
> self.maptree.AddLayer(disp_idx, layertype)
> File "/usr/lib/grass/etc/wx/gui_modules/wxgui_utils.py", line 151, in
> AddLayer if (self.layer_selected and self.layer_selected !=
> self.GetRootItem() and
> File
> "/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
> line 4996, in __ne__
> return _controls_.TreeItemId___ne__(*args, **kwargs)
> TypeError: in method 'TreeItemId___ne__', expected argument 2 of type
> 'wxTreeItemId const *'
These seem to be failing where an if clause breaks across 2 lines. As per
normal Python syntax, this clause is enclosed in parentheses and shouldn't
need a backslash. But your system is not reading it correctly. I've added
the backslash at the line break (redundant but no harm done on my system at
least). Try it now and see if it clears things up.
>
> - How do I chose 'none' as a color ?
>
> - In the d.vect window, shouldn't the flags concerning colors, (-a and
> -c) be on the colors tab ?
This is determined by the guisections setting in the d.vect code. It can be
switched there.
Michael
>
> Moritz
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
More information about the grass-gui
mailing list