GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
psmap/menudata.py
Go to the documentation of this file.
1 """!
2 @package ps.menudata
3 
4 @brief wxPsMap - menu entries
5 
6 Classes:
7  - menudata::PsMapData
8 
9 (C) 2011 by the GRASS Development Team
10 
11 This program is free software under the GNU General Public License
12 (>=v2). Read the file COPYING that comes with GRASS for details.
13 
14 @author Anna Kratochvilova <kratochanna gmail.com>
15 """
16 
17 import os
18 
19 from core import globalvar
20 from core.menudata import MenuData
21 
23  def __init__(self, path = None):
24  """!Menu for Cartographic Composer (psmap.py)
25 
26  @path path to XML to be read (None for menudata_psmap.xml)
27  """
28  if not path:
29  gisbase = os.getenv('GISBASE')
30  global etcwxdir
31  path = os.path.join(globalvar.ETCWXDIR, 'xml', 'menudata_psmap.xml')
32 
33  MenuData.__init__(self, path)
Complex list for menu entries for wxGUI.
def __init__
Menu for Cartographic Composer (psmap.py)
Abstract menu data class.