We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e35c32c commit bd0d8d6Copy full SHA for bd0d8d6
examples/filter_list.py
@@ -34,13 +34,19 @@ def filter_func(text, collection):
34
return list(g)
35
36
37
+def callback_listener(item):
38
+ with open('choice_logs.txt', 'a') as f:
39
+ f.write(str(item) + '\n')
40
+
41
42
questions = [
43
inquirer.FilterList(
- "size",
44
+ "food selection",
45
message="Select item ",
46
choices=choices,
47
carousel=False,
- filter_func= filter_func,
48
+ filter_func=filter_func,
49
+ choice_callback=callback_listener
50
),
51
]
52
0 commit comments