[GRASS-SVN] r39933 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 6 17:49:07 EST 2009
Author: cmbarton
Date: 2009-12-06 17:49:06 -0500 (Sun, 06 Dec 2009)
New Revision: 39933
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py
Log:
Fix so that it will find mapsets and function as desired.
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py 2009-12-06 22:45:22 UTC (rev 39932)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py 2009-12-06 22:49:06 UTC (rev 39933)
@@ -133,9 +133,8 @@
self.sizer.Fit(self)
def OnElement(self, event):
- """!Name for vector map layer given"""
+ """!Select mapset given location name"""
location = event.GetString()
- mapset = self.element1.GetValue()
if location:
dbase = grass.gisenv()['GISDBASE']
@@ -150,7 +149,7 @@
def GetValues(self):
"""!Get location, mapset"""
- return (self.GetElement(), self.element1.GetValue())
+ return (self.GetElement(), self.element1.GetStringSelection())
class MapsetDialog(ElementDialog):
"""!Dialog used to select mapset"""
More information about the grass-commit
mailing list