def METHOD_NAME(self, pickevent):
    if (pickevent.state == ivw.PickingState.Updated):
        i = pickevent.pickedId
        p1 = self.positions[i * 3 + 0]
        p2 = self.positions[i * 3 + 1]
        p3 = self.positions[i * 3 + 2]
        pickevent.setToolTip(f"id: {i} Pos: {p1}, {p2}, {p3}")
    else:
        pickevent.setToolTip("")