[GRASS-user] empty map window/map rendering doesn't work (wxgui)
Huidae Cho
grass4u at gmail.com
Sun Mar 15 18:21:14 EDT 2009
Hi,
I'm having a similar problem to this one after updating my repository
(grass/trunk) yesterday. I installed SWIG, wxPython (version 2.8.9.2),
and wxWidgets (version 2.8.9.2, --enable-graphics_ctx), but my Cairo
version is 1.4.10, which means no g.cairocomp.
My error message looks like this:
----------------
Traceback (most recent call last):
File "/home/geni/usr/grass/grass-trunk/dist.i686-pc-linux-
gnu/etc/wxpython/gui_modules/mapdisp_window.py", line 448,
in OnPaint
self.pdc.DrawToDCClipped(dc, rgn)
File "/home/geni/usr/grass/grass-trunk/dist.i686-pc-linux-
gnu/etc/wxpython/vdigit/grass7_wxvdigit.py", line 384, in
DrawToDCClipped
def DrawToDCClipped(self, *args): return
_grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
TypeError
:
in method 'PseudoDC_DrawToDCClipped', argument 2 of type
'void *'
Traceback (most recent call last):
File "/home/geni/usr/grass/grass-trunk/dist.i686-pc-linux-
gnu/etc/wxpython/gui_modules/mapdisp_window.py", line 540,
in OnIdle
self.UpdateMap(render=True)
File "/home/geni/usr/grass/grass-trunk/dist.i686-pc-linux-
gnu/etc/wxpython/gui_modules/mapdisp_window.py", line 665,
in UpdateMap
self.Draw(self.pdc, self.img, drawid=id)
File "/home/geni/usr/grass/grass-trunk/dist.i686-pc-linux-
gnu/etc/wxpython/gui_modules/mapdisp_window.py", line 264,
in Draw
pdc.SetBackground(bg)
File "/home/geni/usr/grass/grass-trunk/dist.i686-pc-linux-
gnu/etc/wxpython/vdigit/grass7_wxvdigit.py", line 374, in
SetBackground
def SetBackground(self, *args): return
_grass7_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError
:
in method 'PseudoDC_SetBackground', argument 2 of type
'wxBrush const &'
----------------
I took a closer look at the code of _wrap_PseudoDC_DrawToDCClipped
(grass7_wxvdigit_wrap.cpp) and SWIG_IsOK, and SWIG_ConvertPtr
(swig-1.3.38/Lib/python/pyrun.swg).
To get the above error (i.e., !SWIG_IsOK(res2)), SWIG_ConvertPtr(obj1,
SWIG_as_voidptrptr(&arg2), 0, 0) or SWIG_Python_ConvertPtrAndOwn(obj1,
SWIG_as_voidptrptr(&arg2), 0, 0) should return a negative integer. What
happens in SWIG_Python_ConvertPtrAndOwn is that it returns SWIG_ERROR
(-1) when (obj1 is NULL) or (SWIG_Python_GetSwigThis(obj1) is NULL
and flags (the last argument, 0) is 0).
This error starts from self.pdc.DrawToDCClipped(dc, rgn) in
mapdisp_window.py, and obj1 is dc in this call. Is dc NULL? No, it
isn't. "print dc" displays "<wx._gdi.BufferedPaintDC; proxy of <Swig
Object of type 'wxBufferedPaintDC *' at 0x9427940> >". Then, did
SWIG_Python_GetSwigThis return NULL? Probably...
This error occurs even before calling gwxPseudoDC_DrawToDCClipped, so I
think just chaning the prototype of DrawToDCClipped in pseudodc.i as in
revision 36252 cannot solve this problem (and, actually, it didn't).
Could it be my wxWidget configure flags? --enable-unicode
--enable-sound --enable-graphics_ctx --with-sdl --with-opengl
Any ideas?
Thanks.
Huidae
On Mon, Feb 09, 2009 at 06:19:57AM -0800, kries wrote:
>
> Hi,
>
> thank you, unfortunately it still doesn't work.
>
> kries
>
>
>
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 535, in OnIdle
> >
> > self.UpdateMap(render=True)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 660, in UpdateMap
> >
> > self.Draw(self.pdc, self.img, drawid=id)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 263, in Draw
> >
> > pdc.SetBackground(bg)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 378, in SetBackground
> >
> > def SetBackground(self, *args): return
> > _grass7_wxvdigit.PseudoDC_SetBackground(self, *args)
> > TypeError
> > :
> > in method 'PseudoDC_SetBackground', argument 2 of type
> > 'wxBrush const &'
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp.py", line 560, in OnRender
> >
> > self.MapWindow.UpdateMap(render=True)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 660, in UpdateMap
> >
> > self.Draw(self.pdc, self.img, drawid=id)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 263, in Draw
> >
> > pdc.SetBackground(bg)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 378, in SetBackground
> >
> > def SetBackground(self, *args): return
> > _grass7_wxvdigit.PseudoDC_SetBackground(self, *args)
> > TypeError
> > :
> > in method 'PseudoDC_SetBackground', argument 2 of type
> > 'wxBrush const &'
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 518, in OnSize
> >
> > self.UpdateMap()
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 660, in UpdateMap
> >
> > self.Draw(self.pdc, self.img, drawid=id)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 263, in Draw
> >
> > pdc.SetBackground(bg)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 378, in SetBackground
> >
> > def SetBackground(self, *args): return
> > _grass7_wxvdigit.PseudoDC_SetBackground(self, *args)
> > TypeError
> > :
> > in method 'PseudoDC_SetBackground', argument 2 of type
> > 'wxBrush const &'
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 518, in OnSize
> >
> > self.UpdateMap()
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 660, in UpdateMap
> >
> > self.Draw(self.pdc, self.img, drawid=id)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 263, in Draw
> >
> > pdc.SetBackground(bg)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 378, in SetBackground
> >
> > def SetBackground(self, *args): return
> > _grass7_wxvdigit.PseudoDC_SetBackground(self, *args)
> > TypeError
> > :
> > in method 'PseudoDC_SetBackground', argument 2 of type
> > 'wxBrush const &'
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 518, in OnSize
> >
> > self.UpdateMap()
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 660, in UpdateMap
> >
> > self.Draw(self.pdc, self.img, drawid=id)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 263, in Draw
> >
> > pdc.SetBackground(bg)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 378, in SetBackground
> >
> > def SetBackground(self, *args): return
> > _grass7_wxvdigit.PseudoDC_SetBackground(self, *args)
> > TypeError
> > :
> > in method 'PseudoDC_SetBackground', argument 2 of type
> > 'wxBrush const &'
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 443, in OnPaint
> >
> > self.pdc.DrawToDCClipped(dc, rgn)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 386, in DrawToDCClipped
> >
> > def DrawToDCClipped(self, *args): return
> > _grass7_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
> > NotImplementedError
> > :
> > Wrong number of arguments for overloaded function
> > 'PseudoDC_DrawToDCClipped'.
> > Possible C/C++ prototypes are:
> > DrawToDCClipped(gwxPseudoDC *,wxBufferedPaintDC *,wxRect
> > const &)
> > DrawToDCClipped(gwxPseudoDC *,wxGCDC *,wxRect const &)
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 518, in OnSize
> >
> > self.UpdateMap()
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 660, in UpdateMap
> >
> > self.Draw(self.pdc, self.img, drawid=id)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 263, in Draw
> >
> > pdc.SetBackground(bg)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 378, in SetBackground
> >
> > def SetBackground(self, *args): return
> > _grass7_wxvdigit.PseudoDC_SetBackground(self, *args)
> > TypeError
> > :
> > in method 'PseudoDC_SetBackground', argument 2 of type
> > 'wxBrush const &'
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 518, in OnSize
> >
> > self.UpdateMap()
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 660, in UpdateMap
> >
> > self.Draw(self.pdc, self.img, drawid=id)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 263, in Draw
> >
> > pdc.SetBackground(bg)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 378, in SetBackground
> >
> > def SetBackground(self, *args): return
> > _grass7_wxvdigit.PseudoDC_SetBackground(self, *args)
> > TypeError
> > :
> > in method 'PseudoDC_SetBackground', argument 2 of type
> > 'wxBrush const &'
> > Traceback (most recent call last):
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 518, in OnSize
> >
> > self.UpdateMap()
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 660, in UpdateMap
> >
> > self.Draw(self.pdc, self.img, drawid=id)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/gui_modules/ma
> > pdisp_window.py", line 263, in Draw
> >
> > pdc.SetBackground(bg)
> > File "/usr/local/grass-7.0.svn/etc/wxpython/vdigit/grass7_
> > wxvdigit.py", line 378, in SetBackground
> >
> > def SetBackground(self, *args): return
> > _grass7_wxvdigit.PseudoDC_SetBackground(self, *args)
> > TypeError
> > :
> > in method 'PseudoDC_SetBackground', argument 2 of type
> > 'wxBrush const &'
> >
> >
>
>
> Martin Landa wrote:
> >
> >
> > Hi
> >
> > r35819 (trunk) and r35820 (devbr6) - hopefully helps(?)
> >
> > Martin
> >
> >
>
> --
> View this message in context: http://n2.nabble.com/empty-map-window-map-rendering-doesn%27t-work-%28wxgui%29-tp2294077p2297367.html
> Sent from the Grass - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
More information about the grass-user
mailing list