[GRASS-SVN] r59222 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 10 09:26:23 PDT 2014
Author: martinl
Date: 2014-03-10 09:26:22 -0700 (Mon, 10 Mar 2014)
New Revision: 59222
Modified:
grass/trunk/gui/wxpython/gui_core/dialogs.py
grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: implement SetSelection() from MapsetSelect (backward compatibility)
Modified: grass/trunk/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/dialogs.py 2014-03-10 13:33:57 UTC (rev 59221)
+++ grass/trunk/gui/wxpython/gui_core/dialogs.py 2014-03-10 16:26:22 UTC (rev 59222)
@@ -115,7 +115,7 @@
setItems = False, skipCurrent = True,
validator = SimpleValidator(callback = self.ValidatorCallback))
self.element1.SetFocus()
- self.warning = _("Location or mapset is missing.")
+ self.warning = _("Location or mapset is not defined.")
self._layout()
self.SetMinSize(self.GetSize())
Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py 2014-03-10 13:33:57 UTC (rev 59221)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py 2014-03-10 16:26:22 UTC (rev 59222)
@@ -1176,6 +1176,12 @@
wx.ComboBox to wx.combo.ComboCtrl"""
return self.SetValue(text)
+ def SetSelection(self, sel=0):
+ """!For backward compatibility. MapsetSelect changed to allow
+ multiple selection, this required to change super-class from
+ wx.ComboBox to wx.combo.ComboCtrl"""
+ self.SetValue('') # TODO: implement SetSelection()
+
def SetItems(self, items):
"""!For backward compatibility. MapsetSelect changed to allow
multiple selection, this required to change super-class from
More information about the grass-commit
mailing list