[GRASS-SVN] r65206 - grass/trunk/gui/wxpython/mapwin

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 10 02:13:21 PDT 2015


Author: martinl
Date: 2015-05-10 02:13:20 -0700 (Sun, 10 May 2015)
New Revision: 65206

Modified:
   grass/trunk/gui/wxpython/mapwin/buffered.py
Log:
wxGUI: update vdigit to r65205


Modified: grass/trunk/gui/wxpython/mapwin/buffered.py
===================================================================
--- grass/trunk/gui/wxpython/mapwin/buffered.py	2015-05-10 09:01:38 UTC (rev 65205)
+++ grass/trunk/gui/wxpython/mapwin/buffered.py	2015-05-10 09:13:20 UTC (rev 65206)
@@ -180,7 +180,8 @@
         self.Bind(wx.EVT_ERASE_BACKGROUND, lambda x:None)
 
         # rerender when Map reports change
-        ### self.Map.layerChanged.connect(self.OnUpdateMap)
+        ### Not needed when using RenderMapMgr
+        # self.Map.layerChanged.connect(self.OnUpdateMap)
         self.Map.GetRenderMgr().renderDone.connect(self._updateMFinished)
         
         # vars for handling mouse clicks
@@ -197,12 +198,16 @@
 
     def DisactivateWin(self):
         """Use when the class instance is hidden in MapFrame."""
-        self.Map.layerChanged.disconnect(self.OnUpdateMap)
-
+        ### Not needed when using RenderMapMgr
+        # self.Map.layerChanged.disconnect(self.OnUpdateMap)\
+        pass
+    
     def ActivateWin(self):
         """Used when the class instance is activated in MapFrame."""
-        self.Map.layerChanged.connect(self.OnUpdateMap)
-
+        ### Not needed when using RenderMapMgr
+        # self.Map.layerChanged.connect(self.OnUpdateMap)
+        pass
+        
     def _definePseudoDC(self):
         """Define PseudoDC objects to use
         """



More information about the grass-commit mailing list