|
|
@ -69,7 +69,7 @@ def refresh_point_list(ctx): |
|
|
|
ctx.point_list_widget.clear() |
|
|
|
ctx.point_list_widget.clear() |
|
|
|
|
|
|
|
|
|
|
|
for p in PointManager.point_set.points: |
|
|
|
for p in PointManager.point_set.points: |
|
|
|
ctx.point_list_widget.addItem("({}, {})".format(p.x, p.y)) |
|
|
|
ctx.point_list_widget.addItem(f"({p.x}, {p.y}) | Weight: {p.weight}") |
|
|
|
|
|
|
|
|
|
|
|
ctx.point_list_widget.update() |
|
|
|
ctx.point_list_widget.update() |
|
|
|
|
|
|
|
|
|
|
@ -148,6 +148,7 @@ def _handle_edit_point(ctx, event): |
|
|
|
# Store old x, y from event |
|
|
|
# Store old x, y from event |
|
|
|
set_drawing_event(event) |
|
|
|
set_drawing_event(event) |
|
|
|
ctx.update() |
|
|
|
ctx.update() |
|
|
|
|
|
|
|
refresh_point_list(ctx) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def ogl_keypress_handler(ctx, event): |
|
|
|
def ogl_keypress_handler(ctx, event): |
|
|
|