From f0f645436a16e901bea027d9643f767f5bd94458 Mon Sep 17 00:00:00 2001 From: Kentaro Wada Date: Sun, 15 Mar 2020 00:13:56 +0000 Subject: [PATCH] Add shortcut for "add_point_to_edge" --- labelme/app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/labelme/app.py b/labelme/app.py index 3a7beb7..7e4e04c 100644 --- a/labelme/app.py +++ b/labelme/app.py @@ -330,11 +330,11 @@ class MainWindow(QtWidgets.QMainWindow): shortcuts['undo_last_point'], 'undo', self.tr('Undo last drawn point'), enabled=False) addPointToEdge = action( - self.tr('Add Point to Edge'), - self.canvas.addPointToEdge, - None, - 'edit', - self.tr('Add point to the nearest edge'), + text=self.tr('Add Point to Edge'), + slot=self.canvas.addPointToEdge, + shortcut=shortcuts['add_point_to_edge'], + icon='edit', + tip=self.tr('Add point to the nearest edge'), enabled=False, ) removePoint = action( -- GitLab