Преглед изворни кода

wxGUI/iclass: map selection widget instead of textctrl when exporting vector map

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54386 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová пре 12 година
родитељ
комит
2f9b9871a8
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      gui/wxpython/iclass/dialogs.py

+ 3 - 1
gui/wxpython/iclass/dialogs.py

@@ -544,7 +544,9 @@ class IClassExportAreasDialog(wx.Dialog):
         dataSizer.Add(item = wx.StaticText(parent = self.panel, id = wx.ID_ANY,
                                            label = _("Enter name of new vector map:")),
                       proportion = 0, flag = wx.ALL, border = 3)
-        self.vectorNameCtrl = wx.TextCtrl(parent = self.panel, id = wx.ID_ANY, size = (400, -1))
+        self.vectorNameCtrl = gselect.Select(parent = self.panel, type = 'vector',
+                                             mapsets = [grass.gisenv()['MAPSET']],
+                                             size = globalvar.DIALOG_GSELECT_SIZE)
         if self.vectorName:
             self.vectorNameCtrl.SetValue(self.vectorName)
         dataSizer.Add(item = self.vectorNameCtrl,