瀏覽代碼

wxGUI: fix MapsetSelect (backward compatibility)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58643 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父節點
當前提交
4bb6c1b09f
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      gui/wxpython/gui_core/gselect.py

+ 7 - 1
gui/wxpython/gui_core/gselect.py

@@ -1128,7 +1128,13 @@ class MapsetSelect(wx.combo.ComboCtrl):
             mlist.remove(gisenv['MAPSET'])
             mlist.remove(gisenv['MAPSET'])
         
         
         return mlist
         return mlist
-    
+
+    def GetStringSelection(self):
+        return self.GetValue()
+
+    def SetStringSelection(self, text):
+        return self.SetValue(text)
+
 class SubGroupSelect(wx.ComboBox):
 class SubGroupSelect(wx.ComboBox):
     """!Widget for selecting subgroups"""
     """!Widget for selecting subgroups"""
     def __init__(self, parent, id = wx.ID_ANY, size = globalvar.DIALOG_GSELECT_SIZE, 
     def __init__(self, parent, id = wx.ID_ANY, size = globalvar.DIALOG_GSELECT_SIZE,