-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEncoderScreen.kv
More file actions
52 lines (45 loc) · 1.29 KB
/
EncoderScreen.kv
File metadata and controls
52 lines (45 loc) · 1.29 KB
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
<EncoderScreen>:
#: import time __main__.time
name: 'Encoder'
FloatLayout:
size_hint: None, None
DPEAButton:
# Quit button
size: 100, 100
center_x: root.width * 0.95
center_y: root.height * 0.95
background_color: 0,0,0,0
color: 0.035, 0.152, 0.725, 1
text: "Quit"
on_press: root.exit_program()
DPEAButton:
#Go back button
size: 100, 100
center_x: root.width * 0.95
center_y: root.height * 0.8
color: 0.035, 0.152, 0.725, 1
text: "Go back"
on_press: root.transition_back()
# label for encoder 0 position
Label:
id: encoder0_value
text: 'Encoder 0 Position: ' + root.encoder0_position
font_size: 25
center_x: root.width * 0.2
y: root.height * 0.05
color: 0.0, 0.0, 0.0, 1
# label for encoder 1 position
Label:
id: encoder1_value
text: 'Encoder 1 Position: ' + root.encoder1_position
font_size: 25
center_x: root.width * -0.2
y: root.height * 0.05
color: 0.0, 0.0, 0.0, 1
# label for title
Label:
text: 'Encoder Screen'
font_size: 40
center_x: root.width * 0.0
y: root.height * 0.45
color: 0.0, 0.0, 0.0, 1