Преглед на файлове

New script without sql to test pyinquirer

Jovian (Netbook) преди 6 години
родител
ревизия
983c648b55
променени са 1 файла, в които са добавени 19 реда и са изтрити 0 реда
  1. 19 0
      test_pyinquirer.py

+ 19 - 0
test_pyinquirer.py

@@ -0,0 +1,19 @@
+from PyInquirer import prompt, Separator
+
+# File designed to check if PyInquirer works correctly
+
+widget = [
+	{
+		'type':'list',
+		'name':'ok',
+		'message':'Does PyInquirer work',
+		'choices':['Yes','Indeed','I think so',
+		Separator('<Below more enthusiasm>'),
+		'It seems amazing !', 'Beautiful', 'Woa', ':-)']
+	}
+]
+
+result = prompt(widget)
+print('Your answer is')
+print(result["ok"])
+