-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCLI UI using f strings.py
47 lines (41 loc) · 1.33 KB
/
CLI UI using f strings.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
def colorChange(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")
title = f"{colorChange('red')}={colorChange('white')}={colorChange('blue')}= {colorChange('yellow')}Music App {colorChange('blue')}={colorChange('white')}={colorChange('red')}="
print(f" {title:^35}")
print(f"🔥▶️\t{colorChange('white')}Radio Gaga")
print(f"\t{colorChange('yellow')}Queen")
prev = "prev"
next = "next"
pause = "pause"
print(f"{colorChange('white')}{prev:<35}")
print(f"{colorChange('green')}{next:^35}")
print(f"{colorChange('purple')}{pause:>35}")
print()
print()
text = "WELCOME TO"
print(f"{colorChange('white')}{text:^35}")
text = "-- ARMBOOK --"
print(f"{colorChange('blue')}{text:^35}")
text = "Definitely not a rip off"
print(f"{colorChange('yellow')}{text:>35}")
text = "a certain other social"
print(f"{colorChange('yellow')}{text:>35}")
text = "networking site"
print(f"{colorChange('yellow')}{text:>35}")
text = "Honest."
print(f"{colorChange('red')}{text:^35}")
text = "Username: "
username = input(f"{colorChange('white')}{text:^35}")
text = "Password: "
username = input(f"{colorChange('white')}{text:^35}")