[GRASS-dev] g.gui.tplot: AttributeError: 'module' object has no attribute 'EVT_COMBOBOX_CLOSEUP'

Anna Petrášová kratochanna at gmail.com
Tue Oct 25 09:33:02 PDT 2016


On Tue, Oct 25, 2016 at 4:14 AM, Luca Delucchi <lucadeluge at gmail.com> wrote:
> Hi Anna,
>
> On 9 October 2016 at 03:54, Anna Petrášová <kratochanna at gmail.com> wrote:
>
>> 2.8 and 3 are wxpython versions, gtk itself has different versions,
>> try to look online how to get gtk version number.
>>
>> I hopefully fixed it in r69685, but g.gui.tplot needs more work.
>>
>
> thanks for the fix, could you let me know which works need
> g.gui.tplot, I have a little bit of time now and I could work on it

Hi Luca, here is what I had problems with, mainly with the stvds:

1. create stvds with t.rast.contour
2. load the stvds and attribute 'level' in g.gui.tplot
3. select a contour category and click draw:


Traceback (most recent call last):
  File "/home/anna/dev/grass/trunk1/dist.x86_64-pc-linux-
gnu/gui/wxpython/tplot/frame.py", line 758, in OnRedraw

self._redraw()
  File "/home/anna/dev/grass/trunk1/dist.x86_64-pc-linux-
gnu/gui/wxpython/tplot/frame.py", line 769, in _redraw

self._getSTVDData(self.datasetsV)
  File "/home/anna/dev/grass/trunk1/dist.x86_64-pc-linux-
gnu/gui/wxpython/tplot/frame.py", line 498, in _getSTVDData

lay = int(row['layer'])
TypeError
:
int() argument must be a string or a number, not 'NoneType'


I tried to look at it but couldn't find why the row['layer'] is None...


Then when you have both strds and stvds tabs filled, it gives you a
message and throws an error. When you remove the stvds items and want
draw the strds, it still insist on drawing the stvds and fails.
Generally, more robust input handling is needed.

Anna

>
>> Anna
>>
>
> --
> ciao
> Luca
>
> www.lucadelu.org


More information about the grass-dev mailing list