[GRASS-SVN] r54499 - grass/trunk/gui/wxpython/iclass
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 2 08:29:10 PST 2013
Author: martinl
Date: 2013-01-02 08:29:10 -0800 (Wed, 02 Jan 2013)
New Revision: 54499
Modified:
grass/trunk/gui/wxpython/iclass/digit.py
Log:
wxGUI/iclass: be silent when closing the map
Modified: grass/trunk/gui/wxpython/iclass/digit.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/digit.py 2013-01-02 16:22:56 UTC (rev 54498)
+++ grass/trunk/gui/wxpython/iclass/digit.py 2013-01-02 16:29:10 UTC (rev 54499)
@@ -22,6 +22,7 @@
from vdigit.wxdigit import IVDigit
from vdigit.wxdisplay import DisplayDriver, TYPE_AREA
try:
+ from grass.lib.gis import G_verbose, G_set_verbose
from grass.lib.vector import *
from grass.lib.vedit import *
except ImportError:
@@ -139,3 +140,10 @@
brush = wx.Brush(self.window.GetCategoryColor(self._cat), wx.SOLID)
return pen, brush
+
+ def CloseMap(self):
+ """!Close training areas map - be quiet"""
+ verbosity = G_verbose()
+ G_set_verbose(0)
+ DisplayDriver.CloseMap(self)
+ G_set_verbose(verbosity)
More information about the grass-commit
mailing list