|
@@ -133,9 +133,8 @@ class LocationDialog(ElementDialog):
|
|
self.sizer.Fit(self)
|
|
self.sizer.Fit(self)
|
|
|
|
|
|
def OnElement(self, event):
|
|
def OnElement(self, event):
|
|
- """!Name for vector map layer given"""
|
|
|
|
|
|
+ """!Select mapset given location name"""
|
|
location = event.GetString()
|
|
location = event.GetString()
|
|
- mapset = self.element1.GetValue()
|
|
|
|
|
|
|
|
if location:
|
|
if location:
|
|
dbase = grass.gisenv()['GISDBASE']
|
|
dbase = grass.gisenv()['GISDBASE']
|
|
@@ -150,7 +149,7 @@ class LocationDialog(ElementDialog):
|
|
|
|
|
|
def GetValues(self):
|
|
def GetValues(self):
|
|
"""!Get location, mapset"""
|
|
"""!Get location, mapset"""
|
|
- return (self.GetElement(), self.element1.GetValue())
|
|
|
|
|
|
+ return (self.GetElement(), self.element1.GetStringSelection())
|
|
|
|
|
|
class MapsetDialog(ElementDialog):
|
|
class MapsetDialog(ElementDialog):
|
|
"""!Dialog used to select mapset"""
|
|
"""!Dialog used to select mapset"""
|