[GRASS-SVN] r39309 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Sep 27 23:50:27 EDT 2009
Author: cmbarton
Date: 2009-09-27 23:50:26 -0400 (Sun, 27 Sep 2009)
New Revision: 39309
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py
Log:
Fix a variety of selection problems for projections, datums, and transforms.
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py 2009-09-27 15:05:50 UTC (rev 39308)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/location_wizard.py 2009-09-28 03:50:26 UTC (rev 39309)
@@ -401,7 +401,7 @@
def OnText(self, event):
"""!Projection name changed"""
- self.proj = event.GetString()
+ self.proj = event.GetString().lower()
nextButton = wx.FindWindowById(wx.ID_FORWARD)
if len(self.proj) == 0 and nextButton.IsEnabled():
nextButton.Enable(False)
@@ -435,7 +435,7 @@
index = event.m_itemIndex
# set values
- self.proj = self.projlist.GetItem(index, 0).GetText()
+ self.proj = self.projlist.GetItem(index, 0).GetText().lower()
self.projdesc = self.projlist.GetItem(index, 0).GetText()
self.tproj.SetValue(self.proj)
@@ -865,9 +865,9 @@
event.Skip()
def OnDText(self, event):
- self.datum = event.GetString()
- self.transformlist.Search(index=1, pattern=self.datum)
- if self.transformlist.GetItemCount() > 0:
+ self.datum = event.GetString().lower()
+ tlist = self.transformlist.Search(index=1, pattern=self.datum)
+ if len(tlist) > 0:
self.hastransform = True
else:
self.hastransform = False
@@ -917,7 +917,6 @@
if str == '' or self.datum == '':
self.transformlist.DeleteAllItems()
self.transformlist.Refresh()
- self.tdatum.SetValue(self.datum)
event.Skip()
More information about the grass-commit
mailing list