Newer
Older
BoxLayout:
orientation: 'vertical'
canvas.before:
Color:
rgba: (0.3, 0.6, 0.4, 1.0)
Rectangle:
pos: self.pos
size: self.size
Label:
text: 'Diner'
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
GridLayout:
rows: 3
cols: 3
Label:
text: 'Drink'
font_size: sp(20)
Label:
text: 'Main'
font_size: sp(20)
Label:
text: 'Side'
font_size: sp(20)
GridLayout:
rows: 3
Button:
text: 'Lemonade'
on_press: app.drink_choices('Lemonade')
font_size: sp(10)
Button:
text: 'Coca-Cola'
font_size: sp(10)
on_press: app.drink_choices('Coca-Cola')
Button:
text: 'Water'
font_size: sp(10)
on_press: app.drink_choices('Water')
GridLayout:
rows: 3
Button:
text: 'Burger'
on_press: app.main_choices('Hamburger')
font_size: sp(10)
Button:
text: 'Pizza'
font_size: sp(10)
on_press: app.main_choices('Pizza')
Button:
text: 'Ribs'
font_size: sp(10)
on_press: app.main_choices('Ribs')
GridLayout:
rows: 3
Button:
text: 'Fries'
on_press: app.side_choices('Fries')
font_size: sp(10)
Button:
text: 'Salad'
font_size: sp(10)
on_press: app.side_choices('Salad')
Button:
text: 'Onion Rings'
font_size: sp(10)
on_press: app.side_choices('Onion Rings')
BoxLayout:
Label:
text: 'Order Progress'
font_size: sp(10)
ProgressBar:
id:progress
value: 0
min: 0
max: 1000
text: 'Are you finished with your order? Check the box to confirm'
size_hint: (None, 1.0)
size: self.texture_size
padding: (sp(12), 0)
CheckBox:
id: switch
text: f'Your drink is {app.drink_choice} and your main dish is {app.main_choice} and your side is {app.side_choice}' if switch.active else''
font_size: sp(15)