define(section,
option,
type,
default='
' ,
text='
' ,
options='
' ,
prototype={ ' audio ' : { ' bits ' : <Config.Option instance at 0xa8ebfec>, ' buf ... )
| source code
|
Define a configuration key.
- Parameters:
section - Section name
option - Option name
type - Key type (e.g. str, int, ...)
default - Default value for the key
text - Text description for the key
options - Either a mapping of values to text descriptions (e.g. {True:
'Yes', False: 'No'}) or a list of possible values
prototype - Configuration prototype mapping
|