grass_icons.py 404 B

123456789101112131415161718192021
  1. """
  2. New GRASS icon set
  3. http://robert.szczepanek.pl/icons.php
  4. https://svn.osgeo.org/osgeo/graphics/toolbar-icons/24x24/
  5. """
  6. __author__ = "Robert Szczepanek"
  7. import os
  8. from core import globalvar
  9. iconPath = os.path.join(globalvar.ICONDIR, "grass")
  10. iconSet = dict()
  11. for icon in os.listdir(iconPath):
  12. name, ext = os.path.splitext(icon)
  13. if ext != '.png':
  14. continue
  15. iconSet[name] = icon