From f8140c6025bc74bac355c1b8cefd4e7fd2d75901 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Sun, 1 Nov 2020 11:36:15 +0100 Subject: Adds support for option+event user inputs. --- tonkadur_ui.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tonkadur_ui.py') diff --git a/tonkadur_ui.py b/tonkadur_ui.py index b4b7efc..c3751dd 100644 --- a/tonkadur_ui.py +++ b/tonkadur_ui.py @@ -94,7 +94,12 @@ try: current_choice = 0; for choice in result['choices']: - print(str(current_choice) + ". " + display_rich_text(choice)) + if (choice["category"] == "option"): + print( + str(current_choice) + + ". " + + display_rich_text(choice["label"]) + ) current_choice += 1 user_choice = input("Your choice? ") -- cgit v1.2.3-70-g09d2