'Custom Python executable value has been changed'

def python_executable_changed(self, pyexec):

    if (not self.cus_exec_radio.isChecked()):
        return
    if (not is_text_string(pyexec)):
        pyexec = to_text_string(pyexec.toUtf8(), 'utf-8')
    if programs.is_python_interpreter(pyexec):
        self.warn_python_compatibility(pyexec)
    else:
        QMessageBox.warning(self, _('Warning'), _('You    selected    an    invalid    Python    interpreter    for    the    console    so    the    previous    interpreter    will    stay.    Please    make    sure    to    select    a    valid    one.'), QMessageBox.Ok)
        self.pyexec_edit.setText(get_python_executable())
        return
