-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
37 lines (30 loc) · 812 Bytes
/
main.py
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
import doToot
import readToots
import searchUserToots
def main_menu():
print('*************')
print('1. do Toot')
print('2. read toots')
print('3. timeline scroller')
print('4. download user toots')
print('5. search user toots')
print('6. EXIT')
print('*************')
user_choice = input('> choice: ')
if user_choice == '1':
doToot.do_toot()
elif user_choice == '2':
readToots.read_toots()
elif user_choice == '3':
readToots.scroller_choice()
elif user_choice == '4':
searchUserToots.do_download()
elif user_choice == '5':
searchUserToots.do_search()
else:
return False
return True
if __name__ == '__main__':
keep_running = True
while keep_running:
keep_running = main_menu()