Browse Source

Fixed Counter widget type

pull/121/merge
= 9 years ago
parent
commit
d34a4a2202
1 changed files with 1 additions and 1 deletions
  1. 2
      gooey/python_bindings/argparse_to_json.py

2
gooey/python_bindings/argparse_to_json.py

@ -86,7 +86,7 @@ def categorize(actions, widget_dict, required=False):
elif is_flag(action):
yield as_json(action, _get_widget(action) or 'CheckBox', required)
elif is_counter(action):
_json = as_json(action, _get_widget(action) or 'Dropdown', required)
_json = as_json(action, _get_widget(action) or 'Counter', required)
# pre-fill the 'counter' dropdown
_json['data']['choices'] = map(str, range(1, 11))
yield _json

Loading…
Cancel
Save