'Select the item for the oids'

def select(self, oids):

    self.scene().clearSelection()
    for oid in oids:
        try:
            item = self.items[oid]
        except KeyError:
            continue
        item.blockSignals(True)
        item.setSelected(True)
        item.blockSignals(False)
        item_rect = item.sceneTransform().mapRect(item.boundingRect())
        self.ensureVisible(item_rect)
