[GRASS-SVN] r57433 - in grass/trunk/gui/wxpython: gui_core mapwin vnet

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 7 15:50:18 PDT 2013


Author: wenzeslaus
Date: 2013-08-07 15:50:17 -0700 (Wed, 07 Aug 2013)
New Revision: 57433

Modified:
   grass/trunk/gui/wxpython/gui_core/gselect.py
   grass/trunk/gui/wxpython/mapwin/base.py
   grass/trunk/gui/wxpython/vnet/dialogs.py
   grass/trunk/gui/wxpython/vnet/vnet_data.py
Log:
wxGUI/mapwindow: reflecting changes from r57397 in registered mouse handlers

Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py	2013-08-07 22:33:26 UTC (rev 57432)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py	2013-08-07 22:50:17 UTC (rev 57433)
@@ -2009,7 +2009,7 @@
         if self.buttonInsCoords.GetToggle() and self.mapWin:
             if self.mapWin.RegisterMouseEventHandler(wx.EVT_LEFT_DOWN, 
                                                      self._onMapClickHandler,
-                                                     wx.StockCursor(wx.CURSOR_CROSS)) == False:
+                                                     'cross') == False:
                 self.buttonInsCoords.SetToggle(False)
                 return
             

Modified: grass/trunk/gui/wxpython/mapwin/base.py
===================================================================
--- grass/trunk/gui/wxpython/mapwin/base.py	2013-08-07 22:33:26 UTC (rev 57432)
+++ grass/trunk/gui/wxpython/mapwin/base.py	2013-08-07 22:50:17 UTC (rev 57433)
@@ -216,7 +216,7 @@
             # expects LayerManager to be the parent
             self.mapwin = self.parent.GetLayerTree().GetMapDisplay().GetWindow()
             if self.mapwin.RegisterEventHandler(wx.EVT_LEFT_DOWN, self.OnMouseAction,
-                                                wx.StockCursor(wx.CURSOR_CROSS)):
+                                                'cross'):
                 self.parent.GetLayerTree().GetMapDisplay().Raise()
             else:
                 # handle that you cannot get coordinates

Modified: grass/trunk/gui/wxpython/vnet/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/vnet/dialogs.py	2013-08-07 22:33:26 UTC (rev 57432)
+++ grass/trunk/gui/wxpython/vnet/dialogs.py	2013-08-07 22:50:17 UTC (rev 57433)
@@ -752,7 +752,7 @@
         if self.defIsecTurnsHndlrReg == False:
             self.mapWin.RegisterMouseEventHandler(wx.EVT_LEFT_DOWN, 
                                                   self.OnDefIsecTurnCost,
-                                                  wx.StockCursor(wx.CURSOR_CROSS))
+                                                  'cross')
             self.defIsecTurnsHndlrReg = True
         else:
             self.mapWin.UnregisterMouseEventHandler(wx.EVT_LEFT_DOWN, 

Modified: grass/trunk/gui/wxpython/vnet/vnet_data.py
===================================================================
--- grass/trunk/gui/wxpython/vnet/vnet_data.py	2013-08-07 22:33:26 UTC (rev 57432)
+++ grass/trunk/gui/wxpython/vnet/vnet_data.py	2013-08-07 22:50:17 UTC (rev 57433)
@@ -451,7 +451,7 @@
         if activate:
             self.mapWin.RegisterMouseEventHandler(wx.EVT_LEFT_DOWN, 
                                                   self.OnMapClickHandler,
-                                                  wx.StockCursor(wx.CURSOR_CROSS))
+                                                  'cross')
             self.handlerRegistered = True
         else:
             self.mapWin.UnregisterMouseEventHandler(wx.EVT_LEFT_DOWN, 



More information about the grass-commit mailing list