'Return the positions of all handles in local coordinates.'

def getHandlePositions(self):

    pos = [self.mapFromScene(self.lines[0].getHandles()[0].scenePos())]
    for l in self.lines:
        pos.append(self.mapFromScene(l.getHandles()[1].scenePos()))
    return pos
