MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / __init__

Method __init__

deeplabcut/gui/widgets.py:258–271  ·  view source on GitHub ↗
(self, parent)

Source from the content-addressed store, hash-verified

256# TODO Insert skeleton link
257class ContextMenu(QtWidgets.QMenu):
258 def __init__(self, parent):
259 super().__init__(parent)
260 self.parent = parent
261 self.current_item = parent.tree.currentItem()
262 insert = QAction("Insert", self)
263 insert.triggered.connect(self.create_item)
264 delete = QAction("Delete", self)
265 delete.triggered.connect(parent.remove_items)
266 self.addAction(insert)
267 self.addAction(delete)
268 if self.current_item.text(0) == "project_path":
269 fix_path = QAction("Fix Path", self)
270 fix_path.triggered.connect(self.fix_path)
271 self.addAction(fix_path)
272
273 def create_item(self):
274 creator = ItemCreator(self)

Callers

nothing calls this directly

Calls 2

connectMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected