[GRASS-SVN] r47208 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jul 21 08:35:46 EDT 2011
Author: martinl
Date: 2011-07-21 05:35:46 -0700 (Thu, 21 Jul 2011)
New Revision: 47208
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/prompt.py
Log:
wxGUI: define missing SetFilter for GPrompt
(merge r47205 from trunk)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/prompt.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/prompt.py 2011-07-21 12:34:05 UTC (rev 47207)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/prompt.py 2011-07-21 12:35:46 UTC (rev 47208)
@@ -500,7 +500,6 @@
self.cmdDesc = None
self.cmdbuffer = self._readHistory()
self.cmdindex = len(self.cmdbuffer)
-
def _readHistory(self):
"""!Get list of commands from history file"""
@@ -627,6 +626,23 @@
"""!Get main prompt widget"""
return self.input
+ def SetFilter(self, data, module = True):
+ """!Set filter
+
+ @param data data dict
+ @param module True to filter modules, otherwise data
+ """
+ if module:
+ if data:
+ self.moduleList = data
+ else:
+ self.moduleList = self._getListOfModules()
+ else:
+ if data:
+ self.dataList = data
+ else:
+ self.dataList = self._getListOfMaps()
+
class GPromptPopUp(GPrompt, TextCtrlAutoComplete):
"""!Interactive wxGUI prompt - popup version"""
def __init__(self, parent):
More information about the grass-commit
mailing list