[GRASS-dev] [GRASS GIS] #3780: Python3 + g.gui.animation: Traceback when clicking on the settings button

GRASS GIS trac at osgeo.org
Fri Mar 8 05:46:05 PST 2019


#3780: Python3 + g.gui.animation: Traceback when clicking on the settings button
--------------------------+-------------------------
  Reporter:  pmav99       |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  wxGUI        |    Version:  svn-trunk
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------

Comment (by pmav99):

 Just confirmed that this happens on Python2 too. It seems that this is an
 issue related to wxPython 4+. On my end, both on Python 2 and Python 3:
 {{{
 pip freeze | grep wx
 wxPython==4.0.4
 }}}

 It seems that the on wxPython4 they changed the namespace:
 - wx 3:
 http://xoomer.virgilio.it/infinity77/wxPython/Widgets/wx.HyperlinkCtrl.html
 - wx 4: https://wxpython.org/Phoenix/docs/html/wx.adv.HyperlinkCtrl.html

 Something like this should fix it:
 {{{
 import wx.adv
 # ...
     link = wx.adv.HyperlinkCtrl(
 }}}
 but that would break compatibility with wxPython3 (not sure if we still
 care for that).

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3780#comment:2>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list