GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
grass2_icons.py
Go to the documentation of this file.
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 
8 import os
9 
10 from gui_modules import globalvar
11 
12 iconPath = os.path.join(globalvar.ETCDIR, "gui", "icons", "grass2")
13 
14 iconSet = dict()
15 
16 for icon in os.listdir(iconPath):
17  name, ext = os.path.splitext(icon)
18  if ext != '.png':
19  continue
20  iconSet[name] = icon