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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jul 13 09:26:38 PDT 2012


Author: wenzeslaus
Date: 2012-07-13 09:26:37 -0700 (Fri, 13 Jul 2012)
New Revision: 52372

Modified:
   grass/trunk/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: add multiple map dialog: usage of regexp improved

Modified: grass/trunk/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/dialogs.py	2012-07-13 16:22:25 UTC (rev 52371)
+++ grass/trunk/gui/wxpython/gui_core/dialogs.py	2012-07-13 16:26:37 UTC (rev 52372)
@@ -1350,7 +1350,11 @@
         bodySizer.Add(item = self.filter,
                       flag = wx.EXPAND,
                       pos = (2,1), span = (1, 2))
-        
+
+        self.filter.SetFocus()
+        self.filter.SetToolTipString(_("Put here regular expression."
+                                       "'.*' means anything, '^' beginning and '$' end."))
+
         # layer list 
         bodySizer.Add(item = wx.StaticText(parent = self, label = _("List of maps:")),
                       flag = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_TOP,
@@ -1439,7 +1443,7 @@
         list = []
         for layer in self.map_layers:
             try:
-                if re.compile('^' + event.GetString()).search(layer):
+                if re.compile(event.GetString()).search(layer):
                     list.append(layer)
             except:
                 pass



More information about the grass-commit mailing list