main.py 809 B

1234567891011121314151617181920212223242526272829303132333435
  1. """!
  2. @package vdigit.main
  3. @brief wxGUI vector digitizer
  4. Classes:
  5. - VDigit
  6. (C) 2007-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. try:
  12. from vdigit.wxdigit import IVDigit, GV_LINES
  13. haveVDigit = True
  14. errorMsg = ''
  15. except ImportError, 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 mapwindow (mapdisp_window.BufferedWindow) instance
  26. """
  27. IVDigit.__init__(self, mapwindow)