[GRASS-SVN] r58674 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 11 08:09:05 PST 2014
Author: martinl
Date: 2014-01-11 08:09:04 -0800 (Sat, 11 Jan 2014)
New Revision: 58674
Modified:
grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: fix another bug related with change to accept multiple values
in MapsetSelect
Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py 2014-01-11 01:57:36 UTC (rev 58673)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py 2014-01-11 16:09:04 UTC (rev 58674)
@@ -1122,9 +1122,9 @@
self.gisdbase = dbase
self.location = location
if location:
- self.SetItems(self._getMapsets())
+ self.tcp.SetItems(self._getMapsets())
else:
- self.SetItems([])
+ self.tcp.SetItems([])
def _getMapsets(self):
if self.searchPath:
@@ -1144,11 +1144,23 @@
return mlist
def GetStringSelection(self):
+ """!For backward compatibility. MapsetSelect changed to allow
+ multiple selection, this required to change super-class from
+ wx.ComboBox to wx.combo.ComboCtrl"""
return self.GetValue()
def SetStringSelection(self, text):
+ """!For backward compatibility. MapsetSelect changed to allow
+ multiple selection, this required to change super-class from
+ wx.ComboBox to wx.combo.ComboCtrl"""
return self.SetValue(text)
+ def SetItems(self, items):
+ """!For backward compatibility. MapsetSelect changed to allow
+ multiple selection, this required to change super-class from
+ wx.ComboBox to wx.combo.ComboCtrl"""
+ self.tcp.SetItems(items)
+
class SubGroupSelect(wx.ComboBox):
"""!Widget for selecting subgroups"""
def __init__(self, parent, id = wx.ID_ANY, size = globalvar.DIALOG_GSELECT_SIZE,
More information about the grass-commit
mailing list