def gotoAddr(self, addr):
        self.clear()        # clear QGraphicsScene
        self.textLines.clear()

        size = self.mainWin.core.nextAddr(addr) - addr
        item = self._makeLine(0, addr, size)
        self.addItem(item)
        self.textLines.append(item)

        # TODO: when >1 view, setLines ranges will conflict
        for v in self.views():
            # TODO: this should be in View code, not here
            v.centerOn(item.x(), item.y())
dataset/ETHPy150Open sapir/sonare/sonare/textview.py/SonareTextScene.gotoAddr/original