main.py 804 B

123456789101112131415161718192021222324252627282930313233343536
  1. """
  2. @package vdigit.main
  3. @brief wxGUI vector digitizer
  4. Classes:
  5. - main::VDigit
  6. (C) 2007-2012 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. try:
  12. from vdigit.wxdigit import IVDigit, GV_LINES, CFUNCTYPE
  13. haveVDigit = True
  14. errorMsg = ''
  15. except (ImportError, NameError) as err:
  16. haveVDigit = False
  17. errorMsg = err
  18. GV_LINES = -1
  19. class IVDigit:
  20. def __init__(self):
  21. pass
  22. class VDigit(IVDigit):
  23. def __init__(self, mapwindow):
  24. """Base class of vector digitizer
  25. :param mapwindow: reference to a map window instance
  26. """
  27. IVDigit.__init__(self, mapwindow)