[GRASS-SVN] r54388 - grass/trunk/gui/wxpython/iclass

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 24 07:37:19 PST 2012


Author: annakrat
Date: 2012-12-24 07:37:19 -0800 (Mon, 24 Dec 2012)
New Revision: 54388

Modified:
   grass/trunk/gui/wxpython/iclass/frame.py
Log:
wxGUI/iclass: set cross cursor when digitizing training areas

Modified: grass/trunk/gui/wxpython/iclass/frame.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/frame.py	2012-12-24 15:27:18 UTC (rev 54387)
+++ grass/trunk/gui/wxpython/iclass/frame.py	2012-12-24 15:37:19 UTC (rev 54388)
@@ -1027,10 +1027,20 @@
         self.plotPanel.EnableZoom(type = -1)
         
     def OnPan(self, event):
-        """!Enable paanning for plots"""
+        """!Enable panning for plots"""
         super(IClassMapFrame, self).OnPan(event)
         self.plotPanel.EnablePan()
         
+    def OnPointer(self, event):
+        """!Set pointer mode.
+
+        @fixme: needs refactoring
+        """
+        toolbar = self.GetMapToolbar()
+        self.SwitchTool(toolbar, event)
+
+        self.GetFirstWindow().mouse['use'] = 'pointer'
+
 class MapManager:
     """! Class for managing map renderer.
     



More information about the grass-commit mailing list