> try
>
> http://trac.osgeo.org/grass/attachment/ticket/1085/ctstyle.diff

Many thanks for the patch!
I could apply it directly on the 6.4RC06 codebase

Name:      grass
Version:   6.4.0RC6
...
Patch4:    grass-ctstyle.patch
...
%patch4 -p0
...

and the wxUI now starts properly.

However when I now try to add, say, a raster, I get the following
error in the command output:

Traceback (most recent call last):
  File "/usr/lib64/grass-6.4.0RC6/etc/wxpython/wxgui.py",
line 1269, in OnAddRaster

self.AddRaster(event)
  File "/usr/lib64/grass-6.4.0RC6/etc/wxpython/wxgui.py",
line 1394, in AddRaster

self.curr_page.maptree.AddLayer('raster')
  File "/usr/lib64/grass-6.4.0RC6/etc/wxpython/gui_modules/w
xgui_utils.py", line 678, in AddLayer

layer = self.PrependItem(parent=self.root, text='',
ct_type=1, wnd=ctrl)
  File "/usr/lib64/python2.4/site-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4065, in PrependItem

return self.DoInsertItem(parent, 0, text, ct_type, wnd,
image, selImage, data)
  File "/usr/lib64/python2.4/site-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 3966, in DoInsertItem

raise Exception("\nERROR: In Order To Append/Insert Controls
You Have To Use The Style TR_HAS_VARIABLE_ROW_HEIGHT")
Exception
:
ERROR: In Order To Append/Insert Controls You Have To Use
The Style TR_HAS_VARIABLE_ROW_HEIGHT




Same (or similar) when adding a vector:


Traceback (most recent call last):
  File "/usr/lib64/grass-6.4.0RC6/etc/wxpython/wxgui.py",
line 1326, in OnAddVector

self.AddVector(event)
  File "/usr/lib64/grass-6.4.0RC6/etc/wxpython/wxgui.py",
line 1428, in AddVector

self.curr_page.maptree.AddLayer('vector')
  File "/usr/lib64/grass-6.4.0RC6/etc/wxpython/gui_modules/w
xgui_utils.py", line 678, in AddLayer

layer = self.PrependItem(parent=self.root, text='',
ct_type=1, wnd=ctrl)
  File "/usr/lib64/python2.4/site-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4065, in PrependItem

return self.DoInsertItem(parent, 0, text, ct_type, wnd,
image, selImage, data)
  File "/usr/lib64/python2.4/site-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 3966, in DoInsertItem

raise Exception("\nERROR: In Order To Append/Insert Controls
You Have To Use The Style TR_HAS_VARIABLE_ROW_HEIGHT")
Exception
:
ERROR: In Order To Append/Insert Controls You Have To Use
The Style TR_HAS_VARIABLE_ROW_HEIGHT

The same operations do work with the -tcltk interface.

I think we are making good progress.
Any idea what could cause this one?

I'll be really happy to have the wxUI interface running on Enterprise Linux 5!
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to