-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraphics.py
More file actions
116 lines (91 loc) · 6.67 KB
/
Copy pathgraphics.py
File metadata and controls
116 lines (91 loc) · 6.67 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
from UI_interactions import *
company_logo = """
██████╗ ███████╗ █████╗ ███╗ ██╗ ██╗ ██╗ █████╗ ██╗ ██╗███████╗███╗ ██╗
██╔══██╗██╔════╝██╔══██╗████╗ ██║ ██║ ██║██╔══██╗██║ ██║██╔════╝████╗ ██║
██████╔╝█████╗ ███████║██╔██╗ ██║█████╗███████║███████║██║ ██║█████╗ ██╔██╗ ██║
██╔══██╗██╔══╝ ██╔══██║██║╚██╗██║╚════╝██╔══██║██╔══██║╚██╗ ██╔╝██╔══╝ ██║╚██╗██║
██████╔╝███████╗██║ ██║██║ ╚████║ ██║ ██║██║ ██║ ╚████╔╝ ███████╗██║ ╚████║
╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═══╝
"""
report= """
██████╗ ███████╗██████╗ ██████╗ ██████╗ ████████╗
██╔══██╗██╔════╝██╔══██╗██╔═══██╗██╔══██╗╚══██╔══╝██╗
██████╔╝█████╗ ██████╔╝██║ ██║██████╔╝ ██║ ╚═╝
██╔══██╗██╔══╝ ██╔═══╝ ██║ ██║██╔══██╗ ██║ ██╗
██║ ██║███████╗██║ ╚██████╔╝██║ ██║ ██║ ╚═╝
╚═╝ ╚═╝╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝
"""
payment_section = """
██████╗ █████╗ ██╗ ██╗███╗ ███╗███████╗███╗ ██╗████████╗
██╔══██╗██╔══██╗╚██╗ ██╔╝████╗ ████║██╔════╝████╗ ██║╚══██╔══╝
██████╔╝███████║ ╚████╔╝ ██╔████╔██║█████╗ ██╔██╗ ██║ ██║
██╔═══╝ ██╔══██║ ╚██╔╝ ██║╚██╔╝██║██╔══╝ ██║╚██╗██║ ██║
██║ ██║ ██║ ██║ ██║ ╚═╝ ██║███████╗██║ ╚████║ ██║
╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝ ╚═╝
███████╗███████╗ ██████╗████████╗██╗ ██████╗ ███╗ ██╗
██╔════╝██╔════╝██╔════╝╚══██╔══╝██║██╔═══██╗████╗ ██║
███████╗█████╗ ██║ ██║ ██║██║ ██║██╔██╗ ██║
╚════██║██╔══╝ ██║ ██║ ██║██║ ██║██║╚██╗██║
███████║███████╗╚██████╗ ██║ ██║╚██████╔╝██║ ╚████║
╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝
"""
help_art = """
██╗ ██╗███████╗██╗ ██████╗
██║ ██║██╔════╝██║ ██╔══██╗
███████║█████╗ ██║ ██████╔╝
██╔══██║██╔══╝ ██║ ██╔═══╝
██║ ██║███████╗███████╗██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
"""
class SystemGraphics:
def __init__(self, logo = company_logo, report = report, transaction = payment_section, help_ = help_art):
self.logo = logo;
self.report = report;
self.transaction = transaction;
self.help_ = help_;
def display_welcome_screen(self):
print(self.logo);
general_pause('start');
def display_help_section(self):
printHelp(self.help_);
general_pause("restart");
loading_animation("restarting Coffee machine ", 1.5);
def display_report(self, coffeeMakerObject):
print(self.report);
coffeeMakerObject.report();
print();
general_pause('continue');
def display_shutdown(self):
cts();
loading_animation('shutting down ', 4)
print(company_logo);
loading_animation('',2);
cts();
#switching off the system.
def display_payment_section(self):
loading_animation('heading to payment section',1);
general_pause('enter payment section');
print(self.transaction);
def display_initial_report(self, coffeeMakerObject):
cts();
print(self.report);
loading_animation('generating initial report',1);
coffeeMakerObject.report();
print();
general_pause('continue');
#print company logo afterwards
def display_static_logo(self):
print(self.logo);
def display_final_report(self, coffeeMakerObject):
print()
general_pause('generate final report')
print(self.report);
loading_animation('generating final report',1);
coffeeMakerObject.report();
print();
general_pause('continue');
#print company logo afterwards
def restart_system(self):
cts();
general_pause('restart')
loading_animation('restarting software', 3);