giface.py 734 B

123456789101112131415161718192021222324252627282930
  1. """!
  2. @package gmodeler.giface
  3. @brief wxGUI Graphical Modeler GRASS interface
  4. Classes:
  5. - giface::GraphicalModelerGrassInterface
  6. (C) 2013 by the GRASS Development Team
  7. This program is free software under the GNU General Public License
  8. (>=v2). Read the file COPYING that comes with GRASS for details.
  9. @author Martin Landa <landa.martin gmail.com>
  10. """
  11. class GraphicalModelerGrassInterface(object):
  12. """!@implements core::giface::GrassInterface"""
  13. def __init__(self, model):
  14. self._model = model
  15. def __getattr__(self, name):
  16. return getattr(self._giface, name)
  17. def GetLayerTree(self):
  18. return None
  19. def GetLayerList(self, prompt):
  20. return self._model.GetMaps(prompt)