-
Notifications
You must be signed in to change notification settings - Fork 0
/
my.kv
54 lines (47 loc) · 1.39 KB
/
my.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
<MyGrid>
GridLayout:
cols: 1
size: root.width, root.height
Image:
source: './images/logo.png'
size_hint_x: 1
size_hint_y: .25
keep_ratio: True
GridLayout:
cols: 2
size_hint_x: 1
size_hint_y: .1
Label:
text: "Score:"
font_size: root.width * 0.05
color: (1, 1, 1, 1)
size_hint_x: .5
size_hint_y: .6
Label:
text: "Highscore:"
font_size: root.width * 0.05
color: (1, 1, 1, 1)
size_hint_x: .5
size_hint_y: .6
Label:
id: label_score
text: root.label_score
font_size: root.width * 0.07
color: (1, 1, 1, 1)
size_hint_x: .5
size_hint_y: .4
Label:
id: label_highscore
text: root.label_highscore
font_size: root.width * 0.07
color: (1, 1, 1, 1)
size_hint_x: .5
size_hint_y: .4
GridLayout:
cols: 1
<P>:
Label:
text: "Tap the game board to restart"
font_size: root.width * 0.07
size_hint: 0.6, 0.2
pos_hint: {"x": 0.2, "top": 0.7}