'Remove *item* from the layout.'

def removeItem(self, item):

    ind = self.itemIndex(item)
    self.layout.removeAt(ind)
    self.scene().removeItem(item)
    for (r, c) in self.items[item]:
        del self.rows[r][c]
    del self.items[item]
    self.update()
