def __init__(self, graphics, *args): QGraphicsPathItem.__init__(self, *args) path = path_from_graphics(graphics) self.setPath(path) self.setAcceptHoverEvents(True) self._actions = [] self.link = None