def row(self): """Get the index of the node relative to the parent""" if self._parent is not None: return self._parent.children.index(self) return 0