[GRASS-SVN] r73255 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 4 07:10:10 PDT 2018


Author: annakrat
Date: 2018-09-04 07:10:10 -0700 (Tue, 04 Sep 2018)
New Revision: 73255

Modified:
   grass/trunk/gui/wxpython/gui_core/wrap.py
Log:
wxGUI: fix for wxPython 4 deprecated function

Modified: grass/trunk/gui/wxpython/gui_core/wrap.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/wrap.py	2018-09-04 14:06:58 UTC (rev 73254)
+++ grass/trunk/gui/wxpython/gui_core/wrap.py	2018-09-04 14:10:10 UTC (rev 73255)
@@ -330,6 +330,12 @@
     def __init__(self, *args, **kwargs):
         super(PseudoDC, self).__init__(*args, **kwargs)
 
+    def DrawLinePoint(self, pt1, pt2):
+        if wxPythonPhoenix:
+            super(PseudoDC, self).DrawLine(pt1, pt2)
+        else:
+            super(PseudoDC, self).DrawLinePoint(pt1, pt2)
+
     def DrawRectangleRect(self, rect):
         if wxPythonPhoenix:
             super(PseudoDC, self).DrawRectangle(rect=rect)



More information about the grass-commit mailing list