[GRASS-SVN] r59514 - grass/trunk/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 29 14:55:50 PDT 2014


Author: annakrat
Date: 2014-03-29 14:55:49 -0700 (Sat, 29 Mar 2014)
New Revision: 59514

Modified:
   grass/trunk/gui/wxpython/modules/mcalc_builder.py
Log:
wxGUI/mapcalc: fix map name and function insertion event handling for wxPython 3

Modified: grass/trunk/gui/wxpython/modules/mcalc_builder.py
===================================================================
--- grass/trunk/gui/wxpython/modules/mcalc_builder.py	2014-03-29 20:04:45 UTC (rev 59513)
+++ grass/trunk/gui/wxpython/modules/mcalc_builder.py	2014-03-29 21:55:49 UTC (rev 59514)
@@ -422,7 +422,7 @@
         """!Checks if user is typing or the event was emited by map selection.
         Prevents from changing focus.
         """
-        item = event.GetString()
+        item = self.mapselect.GetValue().strip()
         if not (abs(len(item) - len(self.lastMapName)) == 1  and \
             self.lastMapName in item or item in self.lastMapName):
             self.OnSelect(event)
@@ -435,7 +435,7 @@
         Checks for characters which can be in raster map name but 
         the raster map name must be then quoted.
         """
-        item = event.GetString().strip()
+        item = self.FindWindowById(event.GetId()).GetValue().strip()
         if any((char in item) for char in self.charactersToQuote):
             item = '"' + item + '"'
         self._addSomething(item)



More information about the grass-commit mailing list