forked from RonanValadez34/DPI_Computer_UI
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathOutputScreen.kv
More file actions
81 lines (72 loc) · 2.04 KB
/
OutputScreen.kv
File metadata and controls
81 lines (72 loc) · 2.04 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
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
<OutputScreen>:
name: 'output'
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()
DPEAButton:
# OUT 0 button
id: OUT_0
size: 100, 100
center_x: root.width * 0.15
center_y: root.height * 0.8
color: 0.035, 0.152, 0.725, 1
text: "OUT 0: LOW"
on_press: root.WriteValue0()
DPEAButton:
# OUT 1 button
id: OUT_1
size: 100, 100
center_x: root.width * 0.25
center_y: root.height * 0.8
color: 0.035, 0.152, 0.725, 1
text: "OUT 1: LOW"
on_press: root.WriteValue1()
DPEAButton:
# OUT 2 button
id: OUT_2
size: 100, 100
center_x: root.width * 0.35
center_y: root.height * 0.8
color: 0.035, 0.152, 0.725, 1
text: "OUT 2: LOW"
on_press: root.WriteValue2()
DPEAButton:
# OUT 3 button
id: OUT_3
size: 100, 100
center_x: root.width * 0.45
center_y: root.height * 0.8
color: 0.035, 0.152, 0.725, 1
text: "OUT 3: LOW"
on_press: root.WriteValue3()
Label:
# label for instructions
id: sensor_value
text: 'READ BEFORE USING:\nPress buttons to toggle between having the output set to LOW or HIGH'
font_size: 40
center_x: root.width * 0.0
y: root.height * 0.0
color: 0.0, 0.0, 0.0, 1
Label:
# label for title
text: 'Output Screen'
font_size: 40
center_x: root.width * 0.0
y: root.height * 0.45
color: 0.0, 0.0, 0.0, 1