summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2020-11-01 11:36:15 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2020-11-01 11:36:15 +0100
commitf8140c6025bc74bac355c1b8cefd4e7fd2d75901 (patch)
treef1593971f8d334b1e84779095e57c84ae80a20a8 /tonkadur_ui.py
parent08f7a91e1ba41f7be3ae8633827b46580c0aec91 (diff)
Adds support for option+event user inputs.
Diffstat (limited to 'tonkadur_ui.py')
-rw-r--r--tonkadur_ui.py7
1 files changed, 6 insertions, 1 deletions
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? ")