From 88ae13d363065e60e5ef81e6f5ccadec15794466 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Mon, 25 May 2020 15:31:28 +1000 Subject: [PATCH] Pre-fill counter dropdowns with 0 (not 1) to 10 inclusive. Fixes issue #569. --- gooey/python_bindings/argparse_to_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gooey/python_bindings/argparse_to_json.py b/gooey/python_bindings/argparse_to_json.py index 7def51e..10d381b 100644 --- a/gooey/python_bindings/argparse_to_json.py +++ b/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)