#58: wx version of v.digit relies upon non-portable hacks --------------------------+------------------------------------------------- Reporter: marisn | Owner: martinl Type: defect | Status: assigned Priority: critical | Milestone: 6.4.0 Component: default | Version: 6.3.0 RCs Resolution: | Keywords: wxGUI, v.digit Platform: Unspecified | Cpu: Unspecified --------------------------+------------------------------------------------- Comment (by glynn):
Replying to [comment:11 martinl]: > I added local copies of pseudodc.cpp and pseudodc.h to trunk (r35446). Please let me know if it works for you. It certainly won't work in general, as the Python code (toolbar.py) is creating a wx.PseduoDC, not the local version. I daresay that it will work if the local copies happen to exactly match the installed version of wxPython, but not otherwise. IOW, any local copy needs to be SWIG'd and used from Python in place of wx.PseudoDC. I was looking into this, and got it mostly working, except for the Python- ised version of GetIdBounds(). For some reason, SWIG insists upon returning an opaque wrapper for wxRect* rather than a wxRect proxy. If you can tolerate modifying the code to pass in a new wx.Rect rather than expecting GetIdBounds to create and return one, then it's basically working. -- Ticket URL: <http://trac.osgeo.org/grass/ticket/58#comment:14> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev