'Saves the changed options.'

def save_options(self):

    options = self.widg.options
    invalid = []
    for opt in options:
        try:
            opt.widg
        except Exception as e:
            raise Exception(((str(e) + '    ||    ') + opt.get_name()))
        if hasattr(opt.widg, 'is_valid'):
            if (not opt.widg.is_valid()):
                invalid.append(opt.get_name())
    if invalid:
        msg = "The    configuration    can't    be    saved,    there    is    a    problem    in    the"
        msg += ('    following    parameter(s):\n\n' + '\n-'.join(invalid))
        dlg = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, msg)
        dlg.set_title('Configuration    error')
        dlg.run()
        dlg.destroy()
        return
    for opt in options:
        opt.set_value(opt.widg.get_value())
    try:
        helpers.coreWrap(self.wizard.set_answer, options)
    except BaseFrameworkException:
        return
    return True
