-
Notifications
You must be signed in to change notification settings - Fork 0
/
leaptracer.kv
executable file
·53 lines (50 loc) · 1.38 KB
/
leaptracer.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
#:kivy 1.0
#:import kivy kivy
<Leaptracer>:
canvas:
Color:
rgb: 1, 1, 1
Rectangle:
source: 'data/images/background.jpg'
size: self.size
BoxLayout:
# The Kivy logo and text
padding: '10dp'
spacing: '10dp'
size_hint: 1, None
pos_hint: {'top': 1}
height: '44dp'
Image:
size_hint: None, None
size: '24dp', '24dp'
source: 'data/logo/kivy-icon-64.png'
mipmap: True
Label:
height: '24dp'
text_size: self.width, None
color: (1, 1, 1, .8)
text: 'Kivy %s - Leaptracer' % kivy.__version__
valign: 'middle'
BoxLayout:
# The buttons and label
orientation: "vertical"
size_hint: 0.9, 0.9
pos_hint: {"x": 0.05, "y": 0.05}
BoxLayout:
orientation: "horizontal"
padding: '10dp'
spacing: '10dp'
Button:
id: btn1
text: "One"
Button:
id: btn2
text: "Two"
Button:
id: btn3
text: "Three"
Slider:
id: sld
Label:
font_size: 0.1 * self.height
text: "Slider = {0}. Buttons = {1}, {2}, {3}".format(sld.value, btn1.state, btn2.state, btn3.state)