menudata.py 808 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. """!
  2. @package core.menudata
  3. @brief Complex list for menu entries for wxGUI
  4. Classes:
  5. - MenuData
  6. Usage:
  7. @code
  8. python menudata.py [action] [manager|modeler]
  9. @endcode
  10. where <i>action</i>:
  11. - strings (default)
  12. - tree
  13. - commands
  14. - dump
  15. (C) 2007-2011 by the GRASS Development Team
  16. This program is free software under the GNU General Public License
  17. (>=v2). Read the file COPYING that comes with GRASS for details.
  18. @author Michael Barton (Arizona State University)
  19. @author Yann Chemin <yann.chemin gmail.com>
  20. @author Martin Landa <landa.martin gmail.com>
  21. @author Glynn Clements
  22. @author Anna Kratochvilova <kratochanna gmail.com>
  23. """
  24. import os
  25. import sys
  26. import pprint
  27. try:
  28. import xml.etree.ElementTree as etree
  29. except ImportError:
  30. import elementtree.ElementTree as etree # Python <= 2.4
  31. import wx