[GRASS-dev] G7.trunk: r.colors color list wxpython issue

Anna Petrášová kratochanna at gmail.com
Wed Apr 2 05:14:30 PDT 2014


On Wed, Apr 2, 2014 at 5:56 AM, Markus Neteler <neteler at osgeo.org> wrote:

> Hi,
>
> some recent change in trunk (didn't find which) broke the color list
> generator in r.colors:
>

hmm, it works for me. But I remember, it happened to me some time ago but
then it started to work again. It looks like it can't find the thumbnails.
I fixed it to display at least the name of the color table when it can't
find the picture for whatever reason.


Anna

>
> Traceback (most recent call last):
>   File "/home/neteler/software/grass71/dist.x86_64-unknown-
> linux-gnu/etc/gui/wxpython/gui_core/widgets.py", line 1294,
> in OnDrawItem
>
> r.x + bitmap.GetWidth() + 10,
> AttributeError
> :
> 'NoneType' object has no attribute 'GetWidth'
> Traceback (most recent call last):
>   File "/home/neteler/software/grass71/dist.x86_64-unknown-
> linux-gnu/etc/gui/wxpython/gui_core/widgets.py", line 1294,
> in OnDrawItem
>
> r.x + bitmap.GetWidth() + 10,
> AttributeError
>
> [...]
> :
> 'NoneType' object has no attribute 'GetWidth'
> Traceback (most recent call last):
>   File "/home/neteler/software/grass71/dist.x86_64-unknown-
> linux-gnu/etc/gui/wxpython/gui_core/widgets.py", line 1294,
> in OnDrawItem
>
> r.x + bitmap.GetWidth() + 10,
> AttributeError
> :
> 'NoneType' object has no attribute 'GetWidth'
>
> Using:
> g.version -g
> version=7.1.svn
> date=2014
> revision=59549M
> build_date=2014-04-02
> build_platform=x86_64-unknown-linux-gnu
>
> A fix would be appreciated. In relbranch70 is seems to work fine.
>
> thanks
> Markus
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140402/6d34e7e8/attachment.html>


More information about the grass-dev mailing list