[GRASS-dev] georect.py

Martin Landa landa.martin at gmail.com
Sat Mar 28 09:29:58 EDT 2009


Hi,

2009/3/28 Vincent Bain <bain at toraval.fr>:
>        pdctype='text', coords=coord)
>          File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
>        pdisp_window.py", line 366, in Draw

try to put before this line

print type(coords[0]), type(coords[1])

<type 'int'> <type 'int'> should be printed.

[...]

>        pdc.DrawText(img['text'], coords[0], coords[1])
>          File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_
>        wxvdigit.py", line 372, in DrawText
>
>        def DrawText(*args): return
>        _grass6_wxvdigit.PseudoDC_DrawText(*args)
>        TypeError
>        :
>        in method 'PseudoDC_DrawText', argument 3 of type 'int'
>
>
> Could the source of this problem be my configuration of wxpython ? (no
> errors detected at compilation)

It's related to the local copy of PseudoDC from vdigit. BTW, which
version of swig are you using?

Martin

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


More information about the grass-dev mailing list