[GRASS-SVN] r35151 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 1 18:00:57 EST 2009
Author: cmbarton
Date: 2009-01-01 18:00:57 -0500 (Thu, 01 Jan 2009)
New Revision: 35151
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py
Log:
Fix for hidden overlay option windows on Mac. Also fix to clear display after measurement. Replace grassenv with grass.gisenv()
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py 2009-01-01 22:45:27 UTC (rev 35150)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py 2009-01-01 23:00:57 UTC (rev 35151)
@@ -65,6 +65,7 @@
import globalvar
import utils
import gdialogs
+import grass
from vdigit import VDigitCategoryDialog as VDigitCategoryDialog
from vdigit import VDigitZBulkDialog as VDigitZBulkDialog
from vdigit import VDigitDuplicatesDialog as VDigitDuplicatesDialog
@@ -4095,11 +4096,11 @@
gm_map = MapApp(0)
# set title
gm_map.mapFrm.SetTitle ("GRASS GIS - Map Display: " + title + " - Location: " + \
- grassenv.GetGRASSVariable("LOCATION_NAME"))
+ grass.gisenv()['LOCATION_NAME'])
gm_map.MainLoop()
- if grassenv.env.has_key("MONITOR"):
- os.system("d.mon sel=%s" % grassenv.GetGRASSVariable("MONITOR"))
+ if grass.gisenv().has_key("MONITOR"):
+ os.system("d.mon sel=%s" % grass.gisenv()["MONITOR"])
os.remove(cmdfilename)
os.system("""g.gisenv set="GRASS_PYCMDFILE" """)
More information about the grass-commit
mailing list