pygui cleanup of edge code to use position tuples instead of individual params

This commit is contained in:
Blake Harnden 2020-04-15 12:51:35 -07:00
parent 23562cd294
commit 6f87986364
3 changed files with 18 additions and 19 deletions

View file

@ -628,7 +628,7 @@ class CanvasGraph(tk.Canvas):
self.cursor = x, y
if self.mode == GraphMode.EDGE and self.drawing_edge is not None:
self.drawing_edge.move_dst(x, y)
self.drawing_edge.move_dst(self.cursor)
if self.mode == GraphMode.ANNOTATION:
if is_draw_shape(self.annotation_type) and self.shape_drawing:
shape = self.shapes[self.selected]