Skip to content

Commit

Permalink
Rename function name more pythonic
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jun 13, 2024
1 parent 7685c39 commit cebc754
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions labelme/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __init__(
self.flag_widget.itemChanged.connect(self.setDirty)

self.labelList.itemSelectionChanged.connect(self.labelSelectionChanged)
self.labelList.itemDoubleClicked.connect(self.editLabel)
self.labelList.itemDoubleClicked.connect(self._edit_label)
self.labelList.itemChanged.connect(self.labelItemChanged)
self.labelList.itemDropped.connect(self.labelOrderChanged)
self.shape_dock = QtWidgets.QDockWidget(self.tr("Polygon Labels"), self)
Expand Down Expand Up @@ -591,7 +591,7 @@ def __init__(

edit = action(
self.tr("&Edit Label"),
self.editLabel,
self._edit_label,
shortcuts["edit_label"],
"edit",
self.tr("Modify the label of the selected polygon"),
Expand Down Expand Up @@ -1087,7 +1087,7 @@ def validateLabel(self, label):
return True
return False

def editLabel(self, value=None):
def _edit_label(self, value=None):
if not self.canvas.editing():
return

Expand Down

0 comments on commit cebc754

Please sign in to comment.