MPF.commonHelpers.options module

MPF.commonHelpers.options.checkUpdateDict(optDict, **kwargs)[source]

Returns a dict containing the options from optDict, updated with kwargs. Raises typeError if an option in kwargs doesn’t exist in optDict

MPF.commonHelpers.options.checkUpdateOpt(optDict, **kwargs)[source]

Returns a namedtuple containing the options from optDict, updated with kwargs. Raises typeError if an option in kwargs doesn’t exist in optDict

MPF.commonHelpers.options.popUpdateDict(optDict, **kwargs)[source]

Returns a dict containing the options from optDict, updated with kwargs and the remaining kwargs that don’t exist in optDict

MPF.commonHelpers.options.setAttributes(obj, optDict, **kwargs)[source]
MPF.commonHelpers.options.updateAttributes(obj, optDict, **kwargs)[source]