[GRASS-SVN] r73097 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 14 18:57:45 PDT 2018


Author: annakrat
Date: 2018-08-14 18:57:45 -0700 (Tue, 14 Aug 2018)
New Revision: 73097

Modified:
   grass/trunk/gui/wxpython/lmgr/giface.py
Log:
wxGUI/lmgr: add layer selection into giface

Modified: grass/trunk/gui/wxpython/lmgr/giface.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/giface.py	2018-08-15 01:40:56 UTC (rev 73096)
+++ grass/trunk/gui/wxpython/lmgr/giface.py	2018-08-15 01:57:45 UTC (rev 73097)
@@ -119,6 +119,10 @@
         self._tree.forceCheck = True
         self._tree.CheckItem(layer._layer, checked=checked)
 
+    def SelectLayer(self, layer, select=True):
+        "Select or unselect layer"
+        self._tree.SelectItem(layer._layer, select)
+
     def IsLayerChecked(self, layer):
         """Returns True if layer is checked, False otherwise"""
         return self._tree.IsItemChecked(layer._layer)



More information about the grass-commit mailing list