[GRASS-SVN] r56816 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 20 02:57:47 PDT 2013
Author: annakrat
Date: 2013-06-20 02:57:47 -0700 (Thu, 20 Jun 2013)
New Revision: 56816
Modified:
grass/trunk/gui/wxpython/gui_core/preferences.py
Log:
wxGUI: another small fixes for #2001
Modified: grass/trunk/gui/wxpython/gui_core/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/preferences.py 2013-06-20 09:10:57 UTC (rev 56815)
+++ grass/trunk/gui/wxpython/gui_core/preferences.py 2013-06-20 09:57:47 UTC (rev 56816)
@@ -1361,8 +1361,9 @@
"""!Load EPSG codes from the file"""
win = self.FindWindowById(self.winId['projection:statusbar:projFile'])
path = win.GetValue()
+ wx.BeginBusyCursor()
+ self.epsgCodeDict = ReadEpsgCodes(path)
- self.epsgCodeDict = ReadEpsgCodes(path)
epsgCombo = self.FindWindowById(self.winId['projection:statusbar:epsg'])
if type(self.epsgCodeDict) == type(''):
wx.MessageBox(parent = self,
@@ -1372,11 +1373,13 @@
epsgCombo.SetItems([])
epsgCombo.SetValue('')
self.FindWindowById(self.winId['projection:statusbar:proj4']).SetValue('')
+ wx.EndBusyCursor()
return
- choices = map(str, self.epsgCodeDict.keys())
+ choices = map(str, sorted(self.epsgCodeDict.keys()))
epsgCombo.SetItems(choices)
+ wx.EndBusyCursor()
code = 4326 # default
win = self.FindWindowById(self.winId['projection:statusbar:proj4'])
if code in self.epsgCodeDict:
More information about the grass-commit
mailing list