main.py 894 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 # noqa: F401
  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, giface, mapwindow):
  24. """Base class of vector digitizer
  25. :param giface: reference to a grass interface instance
  26. :param mapwindow: reference to a map window instance
  27. """
  28. IVDigit.__init__(self, giface, mapwindow)