-
Notifications
You must be signed in to change notification settings - Fork 0
/
drinkr.kv
50 lines (49 loc) · 962 Bytes
/
drinkr.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
#: import pump main.pump
GridLayout:
cols: 2
spacing: 10
width: 600
GridLayout:
padding: 5
spacing: 5
width: 200
rows: 1
id: 'Buttons'
Button:
background_normal: ''
background_color: .22, .30, .28, 1
border: 10,10,10,10
width: 10
text: 'Drink1'
on_press: app.pump(1,1)
on_release: app.pump(1,0)
id: 0
Button:
background_normal: ''
background_color: .22, .30, .28, 1
width: 50
text: 'Drink2'
on_press: app.pump(2,1)
on_release: app.pump(2,0)
id: 1
Button:
background_normal: ''
background_color: .22, .30, .28, 1
text: 'Drink3'
on_press: app.pump(3,1)
on_release: app.pump(3,0)
id: 2
FloatLayout:
size_hint: (None, None)
Button:
background_normal: ''
background_color: .22, .30, .28, 1
text: 'Settings'
size: 100,100
pos: 690,370
on_release: app.open_settings()
Image:
pos: 690, 10
padding: 200
source: 'logo.png'
size: self.norm_image_size