[GRASS-user] Graphic problem with wxPython

Hi everyboy,

Something strange : when in the wxPython gui, I don’t see any line or object on the screen when using mouse to zoom in/out (the rectangle who delimits the new region), or when digitizing a new line/point/boundary. The problem doesn’t appear in old TK gui.

Version of grass : grass-6.4.svn_src_snapshot_2008_09_27 (but same problem with all the version of september). The last version of augustus I tried (grass-6.4.svn_src_snapshot_2008_08_02) doesn’t present the problem.

Python2.5

wxWidget : 2.8.7 and after, 2.8.9

Benoit ANDRE
Géologue - Hydrologue


Bureau Conseil en Géologie
Rue de Leuze, 433
B-5300 VEZIN
BELGIQUE

Tél.: +32 81 58 26 11
Fax.: +32 81 58 26 12
Contacter…
Bureau Conseil en Géologie


On 02/10/08 11:08, Benoit ANDRE wrote:

Hi everyboy,

Something strange : when in the wxPython gui, I don't see any line or object on the screen when using mouse to zoom in/out (the rectangle who delimits the new region), or when digitizing a new line/point/boundary. The problem doesn't appear in old TK gui.

Not sure I really understand: you mean that you do not see the zooming rectangle ?

If that is it, I cannot confirm with trunk (grass7) on Debian with wx
  2.8.8.1 and python 2.4.

Moritz

[please keep the discussion on the mailing list]

On 02/10/08 13:48, Benoit ANDRE wrote:

I think I found the problem. But now, I've to resolve it. I get this message :

Traceback (most recent call last):
  File "/disques/linux-1/archive/GIS/grass/grass-6.4/cvn/gra
ss-6.4.svn_src_snapshot_2008_09_27/dist.i686-pc-linux-
gnu/etc/wxpython/gui_modules/mapdisp.py", line 527, in
OnPaint

gcdc = wx.GCDC(dc)
  File "/usr/local/lib/python2.5/site-
packages/wx-2.8-gtk2-unicode/wx/_gdi.py", line 5991, in
__init__

_gdi_.GCDC_swiginit(self,_gdi_.new_GCDC(*args))
NotImplementedError
:
wxGCDC is not available on this platform.
Traceback (most recent call last):
  File "/disques/linux-1/archive/GIS/grass/grass-6.4/cvn/gra
ss-6.4.svn_src_snapshot_2008_09_27/dist.i686-pc-linux-
gnu/etc/wxpython/gui_modules/mapdisp.py", line 527, in
OnPaint

gcdc = wx.GCDC(dc)
  File "/usr/local/lib/python2.5/site-
packages/wx-2.8-gtk2-unicode/wx/_gdi.py", line 5991, in
__init__

_gdi_.GCDC_swiginit(self,_gdi_.new_GCDC(*args))
NotImplementedError
:
wxGCDC is not available on this platform.
Traceback (most recent call last):
  File "/disques/linux-1/archive/GIS/grass/grass-6.4/cvn/gra
ss-6.4.svn_src_snapshot_2008_09_27/dist.i686-pc-linux-
gnu/etc/wxpython/gui_modules/mapdisp.py", line 527, in
OnPaint

gcdc = wx.GCDC(dc)
  File "/usr/local/lib/python2.5/site-
packages/wx-2.8-gtk2-unicode/wx/_gdi.py", line 5991, in
__init__

_gdi_.GCDC_swiginit(self,_gdi_.new_GCDC(*args))
NotImplementedError
:
wxGCDC is not available on this platform.
Traceback (most recent call last):
  File "/disques/linux-1/archive/GIS/grass/grass-6.4/cvn/gra
ss-6.4.svn_src_snapshot_2008_09_27/dist.i686-pc-linux-
gnu/etc/wxpython/gui_modules/mapdisp.py", line 527, in
OnPaint

gcdc = wx.GCDC(dc)
  File "/usr/local/lib/python2.5/site-
packages/wx-2.8-gtk2-unicode/wx/_gdi.py", line 5991, in
__init__

_gdi_.GCDC_swiginit(self,_gdi_.new_GCDC(*args))
NotImplementedError
:
wxGCDC is not available on this platform.

Seeing that *gdi* is mentioned, this might a problem with the _gdi_.so shared library. See point 7 in this document:
http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/README. Have you created the necessary link ?

But why that was OK before ?

No idea. Depends on your local installation.

Moritz

Hi,

Traceback (most recent call last):
File "/disques/linux-1/archive/GIS/grass/grass-6.4/cvn/gra
ss-6.4.svn_src_snapshot_2008_09_27/dist.i686-pc-linux-
gnu/etc/wxpython/gui_modules/mapdisp.py", line 527, in
OnPaint

gcdc = wx.GCDC(dc)
File "/usr/local/lib/python2.5/site-
packages/wx-2.8-gtk2-unicode/wx/_gdi.py", line 5991, in
__init__

_gdi_.GCDC_swiginit(self,_gdi_.new_GCDC(*args))
NotImplementedError
:

this should be fixed in

http://trac.osgeo.org/grass/changeset/33609

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Right.
Now, I see again the zooming rectangle. No more message as below.
Only this : wxGCDC is not available on this platform

Thanks.

Le jeudi 02 octobre 2008 à 15:16 +0200, Martin Landa a écrit :

Hi,

>>> Traceback (most recent call last):
>>>  File "/disques/linux-1/archive/GIS/grass/grass-6.4/cvn/gra
>>> ss-6.4.svn_src_snapshot_2008_09_27/dist.i686-pc-linux-
>>> gnu/etc/wxpython/gui_modules/mapdisp.py", line 527, in
>>> OnPaint
>>>
>>> gcdc = wx.GCDC(dc)
>>>  File "/usr/local/lib/python2.5/site-
>>> packages/wx-2.8-gtk2-unicode/wx/_gdi.py", line 5991, in
>>> __init__
>>>
>>> _gdi_.GCDC_swiginit(self,_gdi_.new_GCDC(*args))
>>> NotImplementedError
>>> :

this should be fixed in

[http://trac.osgeo.org/grass/changeset/33609](http://trac.osgeo.org/grass/changeset/33609)

Martin

Benoit ANDRE
Géologue - Hydrologue


Bureau Conseil en Géologie
Rue de Leuze, 433
B-5300 VEZIN
BELGIQUE

Tél.: +32 81 58 26 11
Fax.: +32 81 58 26 12
Contacter…
Bureau Conseil en Géologie