[GRASS-SVN] r56484 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 29 08:29:58 PDT 2013
Author: annakrat
Date: 2013-05-29 08:29:58 -0700 (Wed, 29 May 2013)
New Revision: 56484
Modified:
grass/trunk/gui/wxpython/gui_core/widgets.py
Log:
wxGUI/search: fix #1985
Modified: grass/trunk/gui/wxpython/gui_core/widgets.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/widgets.py 2013-05-29 15:11:50 UTC (rev 56483)
+++ grass/trunk/gui/wxpython/gui_core/widgets.py 2013-05-29 15:29:58 UTC (rev 56484)
@@ -804,8 +804,12 @@
self._searchBy.SetSelection(0)
self._searchBy.Bind(wx.EVT_CHOICE, self.OnSearchModule)
- self._search = wx.SearchCtrl(parent = self, id = wx.ID_ANY,
- size = (-1, 25), style = wx.TE_PROCESS_ENTER)
+ if sys.platform == 'win32':
+ ctrl = wx.TextCtrl
+ else:
+ ctrl = wx.SearchCtrl
+ self._search = ctrl(parent = self, id = wx.ID_ANY,
+ size = (-1, 25), style = wx.TE_PROCESS_ENTER)
self._search.Bind(wx.EVT_TEXT, self.OnSearchModule)
self._search.Bind(wx.EVT_KEY_UP, self.OnKeyUp)
More information about the grass-commit
mailing list