def METHOD_NAME(self):
    """Callback: the Remove Person button was clicked"""
    items = self.widget.tableWidget.selectedIndexes()
    if items:
        # We only support single-selection, so can just pull the row # from
        # the first entry
        row = items[0].row()
        person_type = self.widget.tableWidget.item(row, 0).data(Qt.UserRole)
        name = self.widget.tableWidget.item(row, 1).text()
        email = self.widget.tableWidget.item(row, 2).text()
        self.widget.tableWidget.removeRow(row)
        if person_type == "maintainer":
            self.metadata.removeMaintainer(name, email)
        else:
            self.metadata.removeAuthor(name, email)