MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / get_position_in_parent

Method get_position_in_parent

deeplabcut/gui/widgets.py:317–320  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

315 menu.exec_(self.tree.mapToGlobal(point))
316
317 def get_position_in_parent(self, item):
318 parent = item.parent() or self.root
319 index = parent.indexOfChild(item)
320 return index, parent
321
322 def insert(self, item):
323 current = self.tree.selectedItems()[0]

Callers 2

insertMethod · 0.95
removeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected