-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavodo.kv
118 lines (112 loc) · 3.5 KB
/
navodo.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#:kivy 1.10.0
<TestScreen>:
BoxLayout:
size:root.size
orientation: 'vertical'
GridLayout:
rows: 3
cols: 3
# Stopwatch
Label:
text: root.stopwatch_disp
size_hint_y: 0.1
font_size: 25
Label:
text: ''
size_hint_y: 0.1
# Clock
Label:
text: root.clock_timeofday
size_hint_y: 0.1
font_size: 25
# CAS
BoxLayout:
orientation:'horizontal'
size_hint_y: 0.5
Button:
text: 'kph'
font_size: 25
on_press: root.zero_CAS()
Label:
text: str(round(root.speed_CAS,2))
font_size: 65
BoxLayout:
orientation:'vertical'
size_hint_y: 0.5
Button:
text: '+'
font_size: 25
on_press: root.inc_incODO()
Button:
text: '-'
font_size: 25
on_press: root.dec_incODO()
# Inc ODO
BoxLayout:
orientation:'horizontal'
Label:
text: str(round(root.distance_incODO/1000,3))
font_size: 65
Button:
text: 'km'
font_size: 25
on_press: root.zero_incODO()
# Speed
BoxLayout:
orientation:'horizontal'
size_hint_y: 0.5
Button:
text: 'kph'
font_size: 25
on_press: root.reset_speed()
Label:
text: str(round(root.speed_Curr,2))
font_size: 65
BoxLayout:
orientation:'vertical'
size_hint_y: 0.5
Button:
text: '+'
font_size: 25
on_press: root.inc_stageODO()
Button:
text: '-'
font_size: 25
on_press: root.dec_stageODO()
# Stage ODO
BoxLayout:
orientation:'horizontal'
size_hint_y: 0.5
Label:
text: str(round(root.distance_stageODO/1000,3))
font_size: 65
Button:
text: 'km'
font_size: 25
on_press: root.zero_stageODO()
# Stopwatch Buttons
BoxLayout:
size_hint_y:0.2
orientation:'horizontal'
Button:
text:'Start/Stop'
font_size: 45
on_press: root.stopwatch_start_stop()
Button:
text:'Reset'
font_size: 45
on_press: root.stopwatch_reset()
# ODO direction switch
BoxLayout:
orientation:'vertical'
Label:
text: root.reverse_label
Switch:
on_active: root.reverse_toggle()
# Lock Button
Button:
size_hint_y: 0.2
text:'lock'
font_size: 65
# on_press: root.unlock()
# on_release: root.lock()