-
Notifications
You must be signed in to change notification settings - Fork 0
/
replits100DaysOfPython_day31_createAUserInterface.py
54 lines (45 loc) · 1.41 KB
/
replits100DaysOfPython_day31_createAUserInterface.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
def print_color(color):
if color=="red":
return ("\033[31m")
elif color=="white":
return ("\033[0m")
elif color=="blue":
return ("\033[34m")
elif color=="yellow":
return ("\033[33m")
elif color == "green":
return ("\033[32m")
elif color == "purple":
return ("\033[35m")
# Interface #1
title = f"{print_color('red')}={print_color('white')}={print_color('blue')}= {print_color('yellow')}Music App {print_color('blue')}={print_color('white')}={print_color('red')}="
print(f" {title:^35}\n")
print(f"🔥▶️ {print_color('white')}Radio Gaga")
print(f" {print_color('yellow')}Queen")
prev = "prev"
next = "next"
pause = "pause"
print(f"{print_color('white')}{prev:<35}")
print(f"{print_color('green')}{next:^35}")
print(f"{print_color('purple')}{pause:>35}")
# Space Between Interfaces
print()
print()
# Interface #2
text = "WELCOME TO"
print(f"{print_color('white')}{text:^35}")
text = "-- ARMBOOK --"
print(f"{print_color('blue')}{text:^35}\n")
text = "Definitely not a rip off"
print(f"{print_color('yellow')}{text:>35}")
text = "a certain other social"
print(f"{print_color('yellow')}{text:>35}")
text = "networking site"
print(f"{print_color('yellow')}{text:>35}")
text = "Honest."
print(f"\n{print_color('red')}{text:^35}\n")
text = "Username: "
username = input(f"{print_color('white')}{text:^35}")
text = "Password: "
username = input(f"{print_color('white')}{text:^35}")
print()