|
|
|
@ -69,7 +69,7 @@ def refresh_point_list(ctx):
|
|
|
|
|
ctx.point_list_widget.clear() |
|
|
|
|
|
|
|
|
|
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() |
|
|
|
|
|
|
|
|
@ -148,6 +148,7 @@ def _handle_edit_point(ctx, event):
|
|
|
|
|
# Store old x, y from event |
|
|
|
|
set_drawing_event(event) |
|
|
|
|
ctx.update() |
|
|
|
|
refresh_point_list(ctx) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def ogl_keypress_handler(ctx, event): |
|
|
|
|