GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
psmap/menudata.py
Go to the documentation of this file.
00001 """!
00002 @package ps.menudata
00003 
00004 @brief wxPsMap - menu entries
00005 
00006 Classes:
00007  - menudata::PsMapData
00008 
00009 (C) 2011 by the GRASS Development Team
00010 
00011 This program is free software under the GNU General Public License
00012 (>=v2). Read the file COPYING that comes with GRASS for details.
00013 
00014 @author Anna Kratochvilova <kratochanna gmail.com>
00015 """
00016 
00017 import os
00018 
00019 from core                 import globalvar
00020 from core.menudata        import MenuData
00021 
00022 class PsMapData(MenuData):
00023     def __init__(self, path = None):
00024         """!Menu for Cartographic Composer (psmap.py)
00025         
00026         @path path to XML to be read (None for menudata_psmap.xml)
00027         """
00028         if not path:
00029             gisbase = os.getenv('GISBASE')
00030             global etcwxdir
00031         path = os.path.join(globalvar.ETCWXDIR, 'xml', 'menudata_psmap.xml')
00032         
00033         MenuData.__init__(self, path)