Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Arohan Ajit committed Jan 24, 2025
1 parent ffbcd4c commit d8f5950
Showing 1 changed file with 90 additions and 86 deletions.
176 changes: 90 additions & 86 deletions gui/wxpython/vdigit/wxdisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,92 +27,96 @@
from core.debug import Debug
from core.gcmd import DecodeString
from core.settings import UserSettings
from grass.lib.gis import (
G_gisinit,
G_set_error_routine,
G_set_percent_routine,
G_unset_error_routine,
G_unset_percent_routine,
)
from grass.lib.vector import ( # Types; Functions; Classes
GV_BOUNDARY,
GV_BUILD_NONE,
GV_CENTROID,
GV_LINE,
GV_LINES,
GV_MODE_RW,
GV_POINT,
GV_POINTS,
WITHOUT_Z,
Map_info,
Vect_append_point,
Vect_box_copy,
Vect_box_extend,
Vect_build,
Vect_build_partial,
Vect_close,
Vect_destroy_cats_struct,
Vect_destroy_line_struct,
Vect_destroy_list,
Vect_find_line_list,
Vect_get_area_box,
Vect_get_area_centroid,
Vect_get_centroid_area,
Vect_get_line_box,
Vect_get_map_box,
Vect_get_num_areas,
Vect_get_num_lines,
Vect_is_3d,
Vect_line_alive,
Vect_line_check_duplicate,
Vect_line_distance,
Vect_list_append,
Vect_new_cats_struct,
Vect_new_line_struct,
Vect_new_list,
Vect_open_old,
Vect_open_tmp_old,
Vect_open_tmp_update,
Vect_open_update,
Vect_point_in_area,
Vect_point_in_poly,
Vect_points_distance,
Vect_read_line,
Vect_select_lines_by_polygon,
Vect_set_updated,
bound_box,
PORT_DOUBLE_MAX,
)
from grass.lib.vedit import ( # Types; Draw flags; Functions
DRAW_AREA,
DRAW_BOUNDARYNO,
DRAW_BOUNDARYONE,
DRAW_BOUNDARYTWO,
DRAW_CENTROIDDUP,
DRAW_CENTROIDIN,
DRAW_CENTROIDOUT,
DRAW_DIRECTION,
DRAW_LINE,
DRAW_NODEONE,
DRAW_NODETWO,
DRAW_POINT,
DRAW_VERTEX,
TYPE_AREA,
TYPE_BOUNDARYNO,
TYPE_BOUNDARYONE,
TYPE_BOUNDARYTWO,
TYPE_CENTROIDDUP,
TYPE_CENTROIDIN,
TYPE_CENTROIDOUT,
TYPE_DIRECTION,
TYPE_ISLE,
TYPE_LINE,
TYPE_NODEONE,
TYPE_NODETWO,
TYPE_POINT,
TYPE_VERTEX,
Vedit_render_map,
)

try:
from grass.lib.gis import (
G_gisinit,
G_set_error_routine,
G_set_percent_routine,
G_unset_error_routine,
G_unset_percent_routine,
)
from grass.lib.vector import ( # Types; Functions; Classes
GV_BOUNDARY,
GV_BUILD_NONE,
GV_CENTROID,
GV_LINE,
GV_LINES,
GV_MODE_RW,
GV_POINT,
GV_POINTS,
WITHOUT_Z,
Map_info,
Vect_append_point,
Vect_box_copy,
Vect_box_extend,
Vect_build,
Vect_build_partial,
Vect_close,
Vect_destroy_cats_struct,
Vect_destroy_line_struct,
Vect_destroy_list,
Vect_find_line_list,
Vect_get_area_box,
Vect_get_area_centroid,
Vect_get_centroid_area,
Vect_get_line_box,
Vect_get_map_box,
Vect_get_num_areas,
Vect_get_num_lines,
Vect_is_3d,
Vect_line_alive,
Vect_line_check_duplicate,
Vect_line_distance,
Vect_list_append,
Vect_new_cats_struct,
Vect_new_line_struct,
Vect_new_list,
Vect_open_old,
Vect_open_tmp_old,
Vect_open_tmp_update,
Vect_open_update,
Vect_point_in_area,
Vect_point_in_poly,
Vect_points_distance,
Vect_read_line,
Vect_select_lines_by_polygon,
Vect_set_updated,
bound_box,
PORT_DOUBLE_MAX,
)
from grass.lib.vedit import ( # Types; Draw flags; Functions
DRAW_AREA,
DRAW_BOUNDARYNO,
DRAW_BOUNDARYONE,
DRAW_BOUNDARYTWO,
DRAW_CENTROIDDUP,
DRAW_CENTROIDIN,
DRAW_CENTROIDOUT,
DRAW_DIRECTION,
DRAW_LINE,
DRAW_NODEONE,
DRAW_NODETWO,
DRAW_POINT,
DRAW_VERTEX,
TYPE_AREA,
TYPE_BOUNDARYNO,
TYPE_BOUNDARYONE,
TYPE_BOUNDARYTWO,
TYPE_CENTROIDDUP,
TYPE_CENTROIDIN,
TYPE_CENTROIDOUT,
TYPE_DIRECTION,
TYPE_ISLE,
TYPE_LINE,
TYPE_NODEONE,
TYPE_NODETWO,
TYPE_POINT,
TYPE_VERTEX,
Vedit_render_map,
)
except (ImportError, OSError, TypeError) as e:
print("wxdisplay.py: {}".format(e), file=sys.stderr)
from gui_core.wrap import Rect

log = None
Expand Down

0 comments on commit d8f5950

Please sign in to comment.