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

Anna Petrášová kratochanna at gmail.com
Sat Oct 8 18:54:33 PDT 2016


On Thu, Oct 6, 2016 at 7:00 AM, Blumentrath, Stefan
<Stefan.Blumentrath at nina.no> wrote:
> Hei Anna,
>
> Thanks for your reply!
> Seems I have both gtk 2.8 and gtk 3.0 on my system.
> But I only found libwxgtk2.8-dev and since GRASS is selfcompiled I guess it is build against 2.8...
> Shall try to build against 3.0.
> Anyway, ticket opened here: https://trac.osgeo.org/grass/ticket/3175
>
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.

Anna

> Cheers
> Stefan
>
> -----Original Message-----
> From: Anna Petrášová [mailto:kratochanna at gmail.com]
> Sent: 6. oktober 2016 00:11
> To: Blumentrath, Stefan <Stefan.Blumentrath at nina.no>
> Cc: GRASS developers list (grass-dev at lists.osgeo.org) <grass-dev at lists.osgeo.org>
> Subject: Re: [GRASS-dev] g.gui.tplot: AttributeError: 'module' object has no attribute 'EVT_COMBOBOX_CLOSEUP'
>
> On Mon, Oct 3, 2016 at 6:14 PM, Blumentrath, Stefan <Stefan.Blumentrath at nina.no> wrote:
>> Hi,
>>
>>
>>
>> In the context of https://trac.osgeo.org/grass/ticket/3057 I just
>> tested g.gui.tplot from GRASS 7.2 (r68908) on a STRDS and got the
>> following error
>> message:
>>
>>
>>
>> Traceback (most recent call last):
>>
>>   File "/usr/local/grass-7.2.svn/scripts/g.gui.tplot", line
>>
>> 130, in <module>
>>
>>     main()
>>
>>   File "/usr/local/grass-7.2.svn/scripts/g.gui.tplot", line
>>
>> 116, in main
>>
>>     frame = TplotFrame(parent=None,
>>
>> giface=StandaloneGrassInterface())
>>
>>   File
>>
>> "/usr/local/grass-7.2.svn/gui/wxpython/tplot/frame.py", line
>>
>> 106, in __init__
>>
>>     self._layout()
>>
>>   File
>>
>> "/usr/local/grass-7.2.svn/gui/wxpython/tplot/frame.py", line
>>
>> 230, in _layout
>>
>>     self.datasetSelectV.Bind(wx.EVT_COMBOBOX_CLOSEUP,
>>
>> AttributeError: 'module' object has no attribute
>>
>> 'EVT_COMBOBOX_CLOSEUP'
>>
>>
>>
>> I am on Ubuntu 14.04 LTS. Is that related to #3057? Any other ideas?
>
> not related. This GUI event is apparently not supported. From documentation:
> Notice that this event is only supported by wxMSW, wxGTK with GTK+
> 2.10 or later, and OSX/Cocoa.
> What version of gtk do you use?
> Anyway, we have to replace this event. It would be best to create a ticket for this.
>
> Anna
>
>>
>>
>>
>> Cheers
>>
>> Stefan
>>
>>
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list