[GRASS-SVN] r56818 - grass/branches/develbranch_6/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 20 03:02:46 PDT 2013


Author: annakrat
Date: 2013-06-20 03:02:34 -0700 (Thu, 20 Jun 2013)
New Revision: 56818

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_core/preferences.py
Log:
wxGUI: another small fixes for #2001 (merge from trunk, r56816)

Modified: grass/branches/develbranch_6/gui/wxpython/gui_core/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_core/preferences.py	2013-06-20 10:01:35 UTC (rev 56817)
+++ grass/branches/develbranch_6/gui/wxpython/gui_core/preferences.py	2013-06-20 10:02:34 UTC (rev 56818)
@@ -1252,8 +1252,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,
@@ -1263,11 +1264,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