[GRASS-SVN] r55301 - grass/trunk/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Mar 10 11:08:31 PDT 2013
Author: mmetz
Date: 2013-03-10 11:08:31 -0700 (Sun, 10 Mar 2013)
New Revision: 55301
Modified:
grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: layer contect menu: restore use standard r.colors interface
Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py 2013-03-10 17:24:16 UTC (rev 55300)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py 2013-03-10 18:08:31 UTC (rev 55301)
@@ -44,7 +44,6 @@
from core.gcmd import GWarning, GError
from gui_core.toolbars import BaseIcons
from icons.icon import MetaIcon
-from modules.colorrules import RasterColorTable
from web_services.dialogs import SaveWMSLayerDialog
from lmgr.giface import LayerManagerGrassInterfaceForMapDisplay
@@ -655,10 +654,8 @@
def OnRasterColorTable(self, event):
"""!Set color table for raster map"""
name = self.GetLayerInfo(self.layer_selected, key = 'maplayer').GetName()
- ctable = RasterColorTable(self, layerTree = self)
- ctable.SetMap(name)
- ctable.Show()
- ctable.CentreOnScreen()
+ GUI(parent = self).ParseCommand(['r.colors',
+ 'map=%s' % name])
def OnVectorColorTable(self, event):
"""!Set color table for vector map"""
More information about the grass-commit
mailing list