-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.kv
62 lines (58 loc) · 1.64 KB
/
main.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
55
56
57
58
59
60
61
62
<MainScreen>:
name: 'main'
FloatLayout:
size_hint: None, None
Button:
id: toggle_button
text: "Off"
size: 100,100
background_color: (0, 0, 0, 1.0)
font_name: 'Roboto-Bold'
text_size: self.size
outline_width: 5
outline_color: (1,1,1,1)
halign: 'center'
valign: 'middle'
font_size: 60
pos_hint: {"x":0, "top":.2}
size_hint: 0.2,0.2
color: 0,0,1,1
on_press: toggle_button.text = root.toggle_pressed(toggle_button.text)
Button:
id: direction_button
text: "CW"
size: 100,100
background_color: (0, 0, 0, 1.0)
font_name: 'Roboto-Bold'
text_size: self.size
outline_width: 5
outline_color: (1,1,1,1)
halign: 'center'
valign: 'middle'
font_size: 60
pos_hint: {"x":.2, "top":.2}
size_hint: 0.2,0.2
color: 0,0,1,1
on_press: direction_button.text = root.direction_pressed(direction_button.text)
BoxLayout:
Slider:
id: slider
size_hint: 0.3,0.3
pos_hint: {"x":.4, "top":.65}
min: 0
max: 100
step: 1
Label:
text: str(slider.value)
size: 100,100
background_color: (0, 0, 0, 1.0)
font_name: 'Roboto-Bold'
text_size: self.size
outline_width: 5
outline_color: (1,1,1,1)
halign: 'center'
valign: 'middle'
font_size: 40
pos_hint: {"x":.2, "top":.6}
size_hint: 0.2,0.2
color: 0,0,1,1