-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
37 lines (29 loc) · 2.47 KB
/
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
37
# ----------------------------------------------------------------------------------------------------------#
# ███╗ ███╗ █████╗ ██████╗ ███████╗ ██████╗ ██╗ ██╗ ██████╗ ████████╗ ██████╗ █████╗ ██████╗ ██╗
# ████╗ ████║██╔══██╗██╔══██╗██╔════╝ ██╔══██╗██║ ██║██╔═══██╗╚══██╔══╝██╔═══██╗ ██╔══██╗██╔══██╗██║
# ██╔████╔██║███████║██████╔╝███████╗ ██████╔╝███████║██║ ██║ ██║ ██║ ██║ ███████║██████╔╝██║
# ██║╚██╔╝██║██╔══██║██╔══██╗╚════██║ ██╔═══╝ ██╔══██║██║ ██║ ██║ ██║ ██║ ██╔══██║██╔═══╝ ██║
# ██║ ╚═╝ ██║██║ ██║██║ ██║███████║ ██║ ██║ ██║╚██████╔╝ ██║ ╚██████╔╝ ██║ ██║██║ ██║
# ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
# ----------------------------------------------------------------------------------------------------------#
# A Python terminal interface for interacting with the Mars Photo API by CorinCerami:
# https://github.com/corincerami/mars-photo-api
#
import os
from src.controller import Controller
from src.util.title_screen import TitleScreen
class Menu:
"""Menu class to handle the main menu and user interactions."""
def __init__(self):
self.title_screen = TitleScreen()
self.main()
def main(self):
"""
Main method to display the menu and handle user choices.
"""
os.system("clear")
self.title_screen.title_screen()
self.title_screen.credits_animated()
self.controller = Controller()
if __name__ == "__main__":
app = Menu()