Skip to content

Commit

Permalink
Activate the option to show the shape label when hovering over a poin…
Browse files Browse the repository at this point in the history
…t or edge
  • Loading branch information
CVHub520 committed Dec 20, 2023
1 parent 0e2a602 commit 7951ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anylabeling/views/labeling/widgets/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def mouseMoveEvent(self, ev): # noqa: C901
self.h_edge = None
shape.highlight_vertex(index, shape.MOVE_VERTEX)
self.override_cursor(CURSOR_POINT)
self.setToolTip(self.tr("Click & drag to move point"))
self.setToolTip(self.tr("Click & drag to move point of shape '%s'") % shape.label)
self.setStatusTip(self.toolTip())
self.update()
break
Expand All @@ -412,7 +412,7 @@ def mouseMoveEvent(self, ev): # noqa: C901
self.prev_h_shape = self.h_hape = shape
self.prev_h_edge = self.h_edge = index_edge
self.override_cursor(CURSOR_POINT)
self.setToolTip(self.tr("Click to create point"))
self.setToolTip(self.tr("Click to create point of shape '%s'") % shape.label)
self.setStatusTip(self.toolTip())
self.update()
break
Expand Down

0 comments on commit 7951ce1

Please sign in to comment.