From 309f8d0da3c0690dc097ccf5468af8d30a29c49b Mon Sep 17 00:00:00 2001 From: koumakpet Date: Wed, 11 Mar 2020 15:46:06 +0100 Subject: [PATCH] Multiline options print --- lib.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib.py b/lib.py index defdeb0..734f21a 100644 --- a/lib.py +++ b/lib.py @@ -184,13 +184,10 @@ class Input: Print.question(question) - options_str = '0: No/Cancel / ' + Print.question_options('0: No/Cancel') for index, option in enumerate(options): - options_str += f'{index + 1}: {option} / ' - # Remove ending ' / ' - options_str = options_str[:-3] + Print.question_options(f'{index + 1}: {option}') - Print.question_options(options_str) answer = get_input_range(len(options)) if answer != 0: return options[answer - 1]