menudata.py 682 B

1234567891011121314151617181920212223242526272829
  1. """
  2. @package gmodeler.menudata
  3. @brief wxGUI Graphical Modeler - menu data
  4. Classes:
  5. - menudata::ModelerMenuData
  6. (C) 2010-2011 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. import os
  12. from core import globalvar
  13. from core.menutree import MenuTreeModelBuilder
  14. class ModelerMenuData(MenuTreeModelBuilder):
  15. def __init__(self, filename=None):
  16. if not filename:
  17. filename = os.path.join(globalvar.WXGUIDIR, "xml", "menudata_modeler.xml")
  18. MenuTreeModelBuilder.__init__(self, filename)