Skip to content

Commit 7d81fca

Browse files
committed
copy/paste_value() -> _copy/_paste_value()
1 parent 5c5f142 commit 7d81fca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

picard/ui/metadatabox.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,13 @@ def edit(self, index, trigger, event):
302302

303303
def keyPressEvent(self, event):
304304
if event.matches(QtGui.QKeySequence.StandardKey.Copy):
305-
self.copy_value()
305+
self._copy_value()
306306
elif event.matches(QtGui.QKeySequence.StandardKey.Paste):
307-
self.paste_value()
307+
self._paste_value()
308308
else:
309309
super().keyPressEvent(event)
310310

311-
def copy_value(self):
311+
def _copy_value(self):
312312
item = self.currentItem()
313313
if item:
314314
column = item.column()
@@ -324,7 +324,7 @@ def copy_value(self):
324324
self.tagger.clipboard().setText(MULTI_VALUED_JOINER.join(value))
325325
self.clipboard = value
326326

327-
def paste_value(self):
327+
def _paste_value(self):
328328
item = self.currentItem()
329329
if item:
330330
column = item.column()
@@ -433,11 +433,11 @@ def contextMenuEvent(self, event):
433433
if single_tag:
434434
menu.addSeparator()
435435
copy_action = QtGui.QAction(icontheme.lookup('edit-copy', icontheme.ICON_SIZE_MENU), _("&Copy"), self)
436-
copy_action.triggered.connect(self.copy_value)
436+
copy_action.triggered.connect(self._copy_value)
437437
copy_action.setShortcut(QtGui.QKeySequence.StandardKey.Copy)
438438
menu.addAction(copy_action)
439439
paste_action = QtGui.QAction(icontheme.lookup('edit-paste', icontheme.ICON_SIZE_MENU), _("&Paste"), self)
440-
paste_action.triggered.connect(self.paste_value)
440+
paste_action.triggered.connect(self._paste_value)
441441
paste_action.setShortcut(QtGui.QKeySequence.StandardKey.Paste)
442442
paste_action.setEnabled(editable)
443443
menu.addAction(paste_action)

0 commit comments

Comments
 (0)