-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
197 lines (155 loc) · 6.93 KB
/
Copy pathmain.py
File metadata and controls
197 lines (155 loc) · 6.93 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# Import the required libraries
import pygame
import pygame_menu
customTheme = pygame_menu.Theme(background_color=(0, 0, 0), widget_font_color=(255,255,255))
backgroundImage1 = pygame_menu.baseimage.BaseImage(
image_path="cinema bg MAIN IMG.jpg",
drawing_mode=pygame_menu.baseimage.IMAGE_MODE_FILL
)
customTheme.background_color = backgroundImage1
customTheme2 = pygame_menu.Theme(background_color=(0, 0, 0), widget_font_color=(255,255,255))
backgroundImage2 = pygame_menu.baseimage.BaseImage(
image_path="sg cinema map.jpg",
drawing_mode=pygame_menu.baseimage.IMAGE_MODE_FILL
)
customTheme2.background_color = backgroundImage2
# Initialize pygame
pygame.init()
surface = pygame.display.set_mode((600, 400))
# Make Shaw menu
Shaw = pygame_menu.Menu('Shaw', 600, 400, theme=customTheme)
# Make GV menu
GV = pygame_menu.Menu('GV', 600, 400, theme=customTheme)
# Make Eng Wah menu
EngWah = pygame_menu.Menu('Eng Wah', 600, 400, theme=customTheme)
# Make Cathay menu
Cathay = pygame_menu.Menu('Cathay', 600, 400, theme=customTheme)
# Make Map menu
Map = pygame_menu.Menu('Map', 600, 400, theme=customTheme2)
# Make main menu
menu = pygame_menu.Menu('Welcome', 600, 400, theme=customTheme)
menu.add.button('Shaw', Shaw)
menu.add.button('GV', GV)
menu.add.button('Eng Wah', EngWah)
menu.add.button('Cathay', Cathay)
menu.add.button('Map', Map)
menu.add.button('Quit', pygame_menu.events.EXIT)
PricesGV = pygame_menu.Menu('Prices GV', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
PricesGV.add.label('''standard adult: $10
Fri-sun and public holiday: $14.50
mon-thurs (before 6pm) students: $7
mon-thurs (before 6pm) seniors: $5''', font_size = 20)
GV.add.button('Prices GV', PricesGV)
PricesGVGold = pygame_menu.Menu('Prices GV Gold', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
PricesGVGold.add.label('''mon-wed : before 5pm $29 after 5 $32
thurs-sun + public holiday: $42''', font_size=20)
GV.add.button('Prices GV Gold', PricesGVGold)
VenuesGV = pygame_menu.Menu('Venues GV', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
VenuesGV.add.label('''Paya Lebar
Jurong Point
City Square
Bishan
Tampines
Tiong Bahru
Vivo City
Yishun''', font_size=15)
GV.add.button('Venues GV', VenuesGV)
VenuesGVGold = pygame_menu.Menu('Venues GV Gold', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
VenuesGVGold.add.label('''Funan
Katong
Suntec
Vivo City
Great World City''', font_size=20)
GV.add.button('Venues GV Gold', VenuesGVGold)
WhyGV = pygame_menu.Menu('Why GV', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
WhyGV.add.label('''More venues
Promotion for students and senior citizens
Variety of screening choice''', font_size=20)
GV.add.button('Why GV', WhyGV)
PricesShawiMax = pygame_menu.Menu('Prices Shaw iMax', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
PricesShawiMax.add.label('''mon to thurs: $9
friday to sunday + public holidays: $14.50
mon-thurs (before 6pm) students: $7
mon-thurs (before 6pm) seniors: $4.50
mon to thurs: $17
friday to sunday + public holidays: $19
monday to thursday (before 6pm) students & seniors: $12
friday to sunday (before 6pm) students & seniors: $15''', font_size=12)
Shaw.add.button('Prices Shaw iMax', PricesShawiMax)
PricesShaw = pygame_menu.Menu('Prices Shaw', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
PricesShaw.add.label('''mon to thurs: $9
friday to sunday + public holidays: $14.50
mon-thurs (before 6pm) students: $7
mon-thurs (before 6pm) seniors: $4.50
mon to thurs:
$17
friday to sunday + public holidays: $19
monday to thursday (before 6pm) students & seniors: $12
friday to sunday (before 6pm) students & seniors: $15''', font_size=12)
Shaw.add.button('Prices Shaw', PricesShaw)
VenuesShaw = pygame_menu.Menu('Venues Shaw', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
VenuesShaw.add.label('''Lido
Jewel
Paya Lebar Quarter
Waterway Point
Nex
Seletar
Jcube
Lot One''', font_size=15)
Shaw.add.button('Venues Shaw', VenuesShaw)
WhyShaw = pygame_menu.Menu('Why Shaw', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
WhyShaw.add.label('''Promotion for students and senior citizens
imax availble
many venues''' , font_size=20)
Shaw.add.button('Why Shaw', WhyShaw)
PricesCathay = pygame_menu.Menu('Prices Cathay', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
PricesCathay.add.label('''weekdays: $10
weekends: $14.50
weekdays before 6pm for students: $7
weekdays before 6pm for seniors: $5''',font_size=20)
Cathay.add.button('Prices Cathay', PricesCathay)
VenuesCathay = pygame_menu.Menu('Venues Cathay', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
VenuesCathay.add.label('''Causeway Point
The Cathay
AMK Hub
West Mall
Downtown East
Jem
Parkway Parade
Cineleisure Orchard''', font_size=15)
Cathay.add.button('Venues Cathay', VenuesCathay)
WhyCathay = pygame_menu.Menu('Why Cathay', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
WhyCathay.add.label('''Promotion for students and senior citizens
more venues options''', font_size=20)
Cathay.add.button('Why Cathtay', WhyCathay)
PricesEngWah = pygame_menu.Menu('Prices Eng Wah', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
PricesEngWah.add.label('''Mon-thurs: $9.50
Fri-sun: $14.50
Student before 6pm: $7
Senior before 6pm: $4.50''', font_size=20)
EngWah.add.button('Prices Eng Wah', PricesEngWah)
VenuesEngWah = pygame_menu.Menu('Venues Eng Wah', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
VenuesEngWah.add.label('321 Clementi' , font_size=20)
EngWah.add.button('Venues Eng Wah', VenuesEngWah)
WhyEngWah = pygame_menu.Menu('Why Eng Wah', 600 , 400, theme=customTheme)
#(screen to draw on).add.button(‘Text’, screen to change to when button press)
WhyEngWah.add.label('''Promotion for students and senior citizens
Cheapest prices for senior citizens
$1 off for UOB/Standard Chartered/Citibank credit cardholders''', font_size=20)
EngWah.add.button('Why Eng Wah', WhyEngWah)
# Run your menu
menu.mainloop(surface)