Browse Source

Fixed Counter widget type

pull/121/merge
= 9 years ago
committed by chriskiehl
parent
commit
4798e44d01
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): elif is_flag(action):
yield as_json(action, _get_widget(action) or 'CheckBox', required) yield as_json(action, _get_widget(action) or 'CheckBox', required)
elif is_counter(action): 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 # pre-fill the 'counter' dropdown
_json['data']['choices'] = map(str, range(1, 11)) _json['data']['choices'] = map(str, range(1, 11))
yield _json yield _json

Loading…
Cancel
Save