in the image (added method: Gzv.select_fp_from_image, changed: Gzv.button_press
self.draw.queue_draw()
+ def select_fp_from_image(self, ball):
+ selection = self.treeview.get_selection()
+ selection.select_path(str(ball.position))
+
+ # making sure that only one ball is selected
+ for i in self.balls:
+ i.selected = False
+ ball.selected = True
+
+ self.draw.queue_draw()
+
def save_fp_list(self, *args):
assert self.project is not None
if Point.pythagorean(p1, p2) < i.radius:
self.last_x = event.x - i.p.x
self.last_y = event.y - i.p.y
+ self.select_fp_from_image(i)
self.new_ball = False
self.move_ball = i