-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNEW_Interface.py
More file actions
47 lines (44 loc) · 1.63 KB
/
Copy pathNEW_Interface.py
File metadata and controls
47 lines (44 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from filefinder import *
from NEW_MakeFlashdeck import *
from NEW_QuizFlashdeck import *
from NEW_EditFlashdeck import *
from NEW_PracticeFlashdeck import *
from NEW_GetFlashcardFromFlashdeck import *
from DelFlashcard import *
def MainMenu():
while True:
print('CATALOG - - - - - - \ntype [L] to get flashdecks\ntype [P] to get flashcards of a flashdeck\nSELF_ASSESS - - - - \ntype [F] to practice a flashdeck\ntype [Q] to quiz yourself on a flashdeck\nEDITING - - - - - -\ntype [E] to edit an existing flashdeck\ntype [D] to delete a flashdeck\ntype [M] to make flashdeck\ntype [X] to exit\n- - - - - - - - - - ')
inputting = str(input(">>> "))
inputting = inputting.strip().lower()
print('\n')
if inputting == 'm':
makeFlashdeck()
print('\n')
elif inputting == 'l':
print('your Flashdecks:')
printAllFlashdecks()
print('\n')
elif inputting == 'q':
print('your flashdecks:')
quizFlashdeck()
print('\n')
elif inputting == 'f':
print('your flashdecks:')
practiceFlashdeck()
print('\n')
elif inputting == 'e':
print('your flashdecks:')
EditFlashdeck()
print('\n')
elif inputting == 'd':
print('your flashdecks:')
DelFlashcard()
print('\n')
elif inputting == 'p':
print('your flashdecks:')
GetFlashcardFromFlashdeck()
print('\n')
elif inputting == 'x':
exit()
else:
print('invalid input!')