[GRASS-dev] Some wxPython 3 issues

On Mon, Sep 28, 2015 at 5:04 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Sun, Sep 27, 2015 at 9:48 PM, Anna Petrášová <kratochanna@gmail.com>
wrote:
> Could you try this?
>
> Index: animation/mapwindow.py
> ===================================================================
> --- animation/mapwindow.py (revision 66320)
> +++ animation/mapwindow.py (working copy)
> @@ -122,7 +122,7 @@
> Debug.msg(5, "AnimationWindow.Draw()")
>
> dc.Clear() # make sure you clear the bitmap!
> - if self.bitmap.IsOk():
> + if self.bitmap.GetWidth() > 1:
> dc.DrawBitmap(self.bitmap, x=self.x, y=self.y)
>
> def OnSize(self, event):

Evviva, works!

committed and backported!

Markus

On Mon, Sep 28, 2015 at 11:55 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

committed and backported!

Tested backport: works as well. Glad to have g.gui.animation now also
with wxPython 3!

Markus

On Wed, Sep 23, 2015 at 7:37 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Fri, Sep 18, 2015 at 2:37 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Fri, Sep 18, 2015 at 3:55 AM, Markus Neteler <neteler@osgeo.org> wrote:

> For the editing issue, look for ListCtrl_edit in the
> demo (I used 2.8 demo, so hopefully it has the same name in wpython 3
> demo).

Again, ask on mailing list. They will probably suggest you to test newer
wxpython version and then create a ticket, but maybe they have some more
insights.

FYI
I reported it to Fedora's bugzilla, they kindly took care and reported
it upstream:

"Looks to be a wxWidgets bug in GTK3 implementation. I filed a bug
upstream and provided a reproducer:"
http://trac.wxwidgets.org/ticket/17160

FYI:
Fedora has just published a new wxPython3 package with a workaround
implemented, in order to not have to wait for the upstream GTK3 fix:

https://bodhi.fedoraproject.org/updates/FEDORA-2015-1b1f67cf23

I installed it and the ListCtrl_edit issue is gone! Who needs a hint
how to get it now, just contact me.
However, iIn some days it will likely be distributed through the
Fedora 22+ update channels anyway.

Markus

Hi,

using the scatterplot tool (I loaded two landsat channels), I found a new issue:

Settings: unable to get value 'scatter:rasters:None'
/usr/lib64/python2.7/site-
packages/wx-3.0-gtk3/wx/lib/plot.py:377: FutureWarning:
comparison to `None` will result in an elementwise object
comparison in the future.
  if coord == None:
/usr/lib64/python2.7/site-
packages/wx-3.0-gtk3/wx/lib/plot.py:1201: FutureWarning:
comparison to `None` will result in an elementwise object
comparison in the future.
  if xAxis == None or yAxis == None:

It seems to produce the plot anyway but maybe worthwhile fixing.
This happened in G7.0.svn of today.

thanks
Markus

On Mon, Oct 26, 2015 at 9:53 AM, Markus Neteler <neteler@osgeo.org> wrote:

Hi,

using the scatterplot tool (I loaded two landsat channels), I found a new
issue:

Settings: unable to get value 'scatter:rasters:None'
/usr/lib64/python2.7/site-
packages/wx-3.0-gtk3/wx/lib/plot.py:377: FutureWarning:
comparison to `None` will result in an elementwise object
comparison in the future.
  if coord == None:
/usr/lib64/python2.7/site-
packages/wx-3.0-gtk3/wx/lib/plot.py:1201: FutureWarning:
comparison to `None` will result in an elementwise object
comparison in the future.
  if xAxis == None or yAxis == None:

It seems to produce the plot anyway but maybe worthwhile fixing.
This happened in G7.0.svn of today.

That's 'future warning', so it still works. It's coming from wxpython
library, so it's the similar problem as in
https://trac.osgeo.org/grass/ticket/2558#comment:8

thanks
Markus
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Fri, Sep 18, 2015 at 9:55 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Thu, Sep 17, 2015 at 11:47 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

It's not the standard native checkbox, you should look for
CheckListCtrlMixin.

Ah I see.

# start overview page
python /usr/share/doc/wxPython-docs/demo/Main.py

Yes, it is CheckListCtrlMixin which is unreadable.

I definitely like CheckBox better (also in the past) for the layer
manager. Is there a reason to use CheckListCtrlMixin?
At least I got some insights now how these checkboxes are called...

For the editing issue, look for ListCtrl_edit in the
demo (I used 2.8 demo, so hopefully it has the same name in wpython 3 demo).

Yes, the same name and yes it is broken, too bad. So that's not a GRASS issue.

For the record: I opened a ticket also for that.
https://bugzilla.redhat.com/show_bug.cgi?id=1268615

... which got picked up:

--- Comment #3 from Scott Talbert <swt@XXXX> ---
Investigated. Looks to be a wxWidgets issue - the
wxRendererNative::DrawCheckBox() function doesn't seem to actually draw the
checkbox when in the checked state. Reported upstream:
http://trac.wxwidgets.org/ticket/17240

and immediately fixed there.
Now I expect that it will be backported to Fedora and an update shipped.
Other affected distros may do the same, so if one of you has the same
issue, you may point them to wxWidgets bug#17240.

cheers
Markus

On Mon, Nov 2, 2015 at 7:50 AM, Markus Neteler <neteler@osgeo.org> wrote:
...

For the record: I opened a ticket also for that.
https://bugzilla.redhat.com/show_bug.cgi?id=1268615

... which got picked up:

--- Comment #3 from Scott Talbert <swt@XXXX> ---
Investigated. Looks to be a wxWidgets issue - the
wxRendererNative::DrawCheckBox() function doesn't seem to actually draw the
checkbox when in the checked state. Reported upstream:
http://trac.wxwidgets.org/ticket/17240

and immediately fixed there.
Now I expect that it will be backported to Fedora and an update shipped.

This has happened today.

Other affected distros may do the same, so if one of you has the same
issue, you may point them to wxWidgets bug#17240.

In Fedora solved in wxGTK3-3.0.2-11. Buttons look fine again.

Markus