Browse Source

Pre-fill counter dropdowns with 0 (not 1) to 10 inclusive.

Fixes issue #569.
pull/579/head
Ben Elliston 4 years ago
committed by Chris
parent
commit
88ae13d363
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

@ -270,7 +270,7 @@ def categorize(actions, widget_dict, options):
elif is_counter(action):
_json = action_to_json(action, _get_widget(action, 'Counter'), options)
# pre-fill the 'counter' dropdown
_json['data']['choices'] = list(map(str, range(1, 11)))
_json['data']['choices'] = list(map(str, range(0, 11)))
yield _json
else:
raise UnknownWidgetType(action)

Loading…
Cancel
Save