'Deletes the page from the comparator.'

def _delete(self, widg):

    del self.elements[self.showingPage]
    newlen = len(self.elements)
    self.pagesControl.activate(newlen)
    if (self.showingPage == newlen):
        self.pagesControl.set_page(newlen)
        self.showingPage = (newlen - 1)
    if (len(self.elements) == 1):
        self.delbut.set_sensitive(False)
    if (not any((r[2] for r in self.elements))):
        self.clusterbut.set_sensitive(False)
    (title, realtext) = self._getElementText()
    self.comp.set_right_pane(title, realtext)
