-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkv.kv
49 lines (43 loc) · 906 Bytes
/
kv.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
<Button>
font_name: "images/CuteFont.ttf"
font_size: 40
size_hint: 1, .4
background_color: (.157, .455, .753, 1)
background_normal: ""
background_down: ""
canvas.before:
Color:
rgba: (0, 0, 0, 1)
Line:
width: 2
rectangle: self.x, self.y, self.width, self.height
<ColoredLabel@Label>
font_size: 30
font_name: "images/Mogra.ttf"
size_hint: .3, .15
color: 0,0,0,1
Panel:
slider: slider
btn: btn
canvas.before:
Rectangle:
pos: self.pos
size: self.size
source: "images/bg.jpg"
Button:
id: btn
pos_hint: {"x": 0, "top": .4}
text: "START"
on_press:
root.change_button()
Slider:
id: slider
min: 2
max: 200
step: 1
orientation: "horizontal"
size_hint: 1, .1
pos_hint: {"x": 0, "top": .9}
ColoredLabel:
pos_hint: {"x": .35, "top": .7}
text: str(slider.value) + " CPS"