[GRASS-SVN] r62283 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Oct 17 14:38:33 PDT 2014
Author: annakrat
Date: 2014-10-17 14:38:33 -0700 (Fri, 17 Oct 2014)
New Revision: 62283
Modified:
grass/trunk/gui/wxpython/mapdisp/frame.py
Log:
wxGUI: avoid unnecessary calling grass.gisenv
Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py 2014-10-17 20:53:44 UTC (rev 62282)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py 2014-10-17 21:38:33 UTC (rev 62283)
@@ -247,13 +247,14 @@
except KeyError:
sys.stderr.write(_("Unable to get GRASS version\n"))
grassVersion = "?"
-
+
+ gisenv = grass.gisenv()
title = _("GRASS GIS %(version)s Map Display: %(id)s - Location: %(loc)s@%(mapset)s") % \
- { 'version' : grassVersion,
- 'id' : str(displayId),
- 'loc' : grass.gisenv()["LOCATION_NAME"],
- 'mapset' : grass.gisenv()["MAPSET"] }
-
+ {'version': grassVersion,
+ 'id': str(displayId),
+ 'loc': gisenv["LOCATION_NAME"],
+ 'mapset': gisenv["MAPSET"]}
+
super(MapFrame, self).SetTitle(title)
def _addToolbarVDigit(self):
More information about the grass-commit
mailing list