test_pyinquirer.py 388 B

12345678910111213141516171819
  1. from PyInquirer import prompt, Separator
  2. # File designed to check if PyInquirer works correctly
  3. widget = [
  4. {
  5. 'type':'list',
  6. 'name':'ok',
  7. 'message':'Does PyInquirer work',
  8. 'choices':['Yes','Indeed','I think so',
  9. Separator('<Below more enthusiasm>'),
  10. 'It seems amazing !', 'Beautiful', 'Woa', ':-)']
  11. }
  12. ]
  13. result = prompt(widget)
  14. print('Your answer is')
  15. print(result["ok"])