def METHOD_NAME(self):
    newName, ok = QtWidgets.QInputDialog.getText(
        self, "Column Name", "New column name:"
    )
    if ok and newName != "":  # if name supplied and not canceled
        if newName in self.dat.flowsheet.results.calculated_columns:
            QtWidgets.QMessageBox.information(
                self, "Error", "The column already exists."
            )
        else:
            self.add_calc(newName)