-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpick.kv
287 lines (248 loc) · 6.68 KB
/
pick.kv
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
#:kivy 1.0.9
<Pick>:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
source: 'images/wood-back.jpg'
Button:
id: n0
background_normal: 'numbutt/caps0.png'
background_down: 'numbutt/backer.png'
pos: 155, 35
size: 150, 150
on_release: root.order('0')
Button:
id: n1
background_normal: 'numbutt/caps1.png'
background_down: 'numbutt/backer.png'
pos: 10, 435
size: 150, 150
on_release: root.order('1')
Button:
id: n2
background_normal: 'numbutt/caps2.png'
background_down: 'numbutt/backer.png'
pos: 155, 435
size: 150, 150
on_release: root.order('2')
Button:
id: n3
background_normal: 'numbutt/caps3.png'
background_down: 'numbutt/backer.png'
pos: 300, 435
size: 150, 150
on_release: root.order('3')
Button:
id: n4
background_normal: 'numbutt/caps4.png'
background_down: 'numbutt/backer.png'
pos: 10, 300
size: 150, 150
on_release: root.order('4')
Button:
id: n5
background_normal: 'numbutt/caps5.png'
background_down: 'numbutt/backer.png'
pos: 155, 300
size: 150, 150
on_release: root.order('5')
Button:
id: n6
background_normal: 'numbutt/caps6.png'
background_down: 'numbutt/backer.png'
pos: 300, 300
size: 150, 150
on_release: root.order('6')
Button:
id: n7
background_normal: 'numbutt/caps7.png'
background_down: 'numbutt/backer.png'
pos: 10, 170
size: 150, 150
on_release: root.order('7')
Button:
id: n8
background_normal: 'numbutt/caps8.png'
background_down: 'numbutt/backer.png'
pos: 155, 170
size: 150, 150
on_release: root.order('8')
Button:
id: n9
background_normal: 'numbutt/caps9.png'
background_down: 'numbutt/backer.png'
pos: 300, 170
size: 150, 150
on_release: root.order('9')
Button:
id: nc
background_normal: 'numbutt/numclr.png'
background_down: 'numbutt/backer.png'
pos: 325, 60
on_release: root.clear_num()
Button:
id: ent
background_normal: 'numbutt/enter.jpg'
pos: 110, 580
size: 250, 100
on_release: root.enter_num()
Label:
id: number1
text: "XXXX"
font_name: 'numbutt/Font.ttf'
font_size: 80
color: 1, 1, 1, 1
pos: 180, 675
Button:
id: pop1
background_normal: 'images/Pepsi.png'
pos: 500, 3000
size: 80, 150
Button:
id: pop2
background_normal: 'images/7up.png'
background_down: 'images/7up.png'
pos: 700, 3000
size: 80, 150
Button:
id: pop3
background_normal: 'images/Mug.png'
background_down: 'images/Mug.png'
pos: 900, 3000
size: 80, 150
Button:
id: pop4
background_normal: 'images/Dew.png'
background_down: 'images/Dew.png'
pos: 1100, 3000
size: 80, 150
Button:
id: pop11
background_normal: 'images/Pepsi.png'
background_down: 'images/Pepsi.png'
pos: 500, 3000
size: 80, 150
Button:
id: pop21
background_normal: 'images/7up.png'
background_down: 'images/7up.png'
pos: 700, 3000
size: 80, 150
Button:
id: pop31
background_normal: 'images/Mug.png'
background_down: 'images/Mug.png'
pos: 900, 3000
size: 80, 150
Button:
id: pop41
background_normal: 'images/Dew.png'
background_down: 'images/Dew.png'
pos: 1100, 3000
size: 80, 150
Button:
id: pop12
background_normal: 'images/Pepsi.png'
background_down: 'images/Pepsi.png'
pos: 500, 3000
size: 80, 150
Button:
id: pop22
background_normal: 'images/7up.png'
background_down: 'images/7up.png'
pos: 700, 3000
size: 80, 150
Button:
id: pop32
background_normal: 'images/Mug.png'
background_down: 'images/Mug.png'
pos: 900, 3000
size: 80, 150
Button:
id: pop42
background_normal: 'images/Dew.png'
background_down: 'images/Dew.png'
pos: 1100, 3000
size: 80, 150
Button:
id: pop13
background_normal: 'images/Pepsi.png'
background_down: 'images/Pepsi.png'
pos: 500, 3000
size: 80, 150
Button:
id: pop23
background_normal: 'images/7up.png'
background_down: 'images/7up.png'
pos: 700, 3000
size: 80, 150
Button:
id: pop33
background_normal: 'images/Mug.png'
background_down: 'images/Mug.png'
pos: 900, 3000
size: 80, 150
Button:
id: pop43
background_normal: 'images/Dew.png'
background_down: 'images/Dew.png'
pos: 1100, 3000
size: 80, 150
Button:
id: do1
background_normal: 'images/donutBags1.png'
background_down: 'images/donutBags1.png'
pos: 5500, 450
size: 300, 300
Button:
id: do2
background_normal: 'images/donutBags2.png'
background_down: 'images/donutBags2.png'
pos: 5500, 450
size: 300, 300
Button:
id: do3
background_normal: 'images/donutBags3.png'
background_down: 'images/donutBags3.png'
pos: 5500, 450
size: 300, 300
Button:
id: do4
background_normal: 'images/donutBags4.png'
background_down: 'images/donutBags4.png'
pos: 5500, 450
size: 300, 300
Label:
id: orderT
font_name: 'numbutt/Font.ttf'
text: "Is this your order"
font_size: 40
color: 1, 1, 1, 1
pos: 175, 1200
Label:
id: orderS
font_name: 'numbutt/Font.ttf'
text: "Starting your order"
font_size: 40
color: 1, 1, 1, 1
pos: 175, 1200
Button:
id: new
background_normal: 'images/startover.png'
background_down: 'images/startover.png'
pos: 550, 3000
size: 150, 150
on_press: root.reset_all()
Button:
id: star
background_normal: 'images/red-start.png'
background_down: 'images/red-start-d.png'
pos: 180, -3000
size: 300, 200
on_press: root.starting()
Button:
id: n_back
background_normal: 'numbutt/numback.png'
pos: 35, 60
on_release: root.end_it()