Skip to content

Instantly share code, notes, and snippets.

@awesomebytes
Created January 4, 2016 09:18
Show Gist options
  • Select an option

  • Save awesomebytes/5a70a5a93ccb56ad9232 to your computer and use it in GitHub Desktop.

Select an option

Save awesomebytes/5a70a5a93ccb56ad9232 to your computer and use it in GitHub Desktop.
parameter_dict = {'dialog': [
{
'int_param': {
'type': 'int',
'text': 'Integer parameter',
'current_value': 5,
'min_value': 0,
'max_value': 10,
}
},
{
'float_param': {
'type': 'float',
'text': 'Float parameter',
'current_value': 5.0,
'min_value': 0.0,
'max_value': 10.0,
}
},
{
'bool_param': {
'type': 'bool',
'text': 'Boolean parameter',
'current_value': True
}
},
{
'enumerate_param': {
'type': 'enumerate',
'text': 'Enumerate parameter',
'options': ['enumerate 1',
'enumerate 2',
'enumerate 3'],
'current_value': 'enumerate 2',
}
},
{
'string_param': {
'type': 'string',
'text': 'String parameter',
'current_value': 'text here'
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment