forked from RonanValadez34/DPI_Computer_UI
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathInputScreen.kv
More file actions
90 lines (79 loc) · 2.35 KB
/
InputScreen.kv
File metadata and controls
90 lines (79 loc) · 2.35 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
82
83
84
85
86
87
88
89
90
<InputScreen>:
name: 'input'
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:
# IN 0 Button
id: IN_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: "IN 0"
on_press: root.selectIN0()
DPEAButton:
# IN 1 Button
id: IN_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: "IN 1"
on_press: root.selectIN1()
DPEAButton:
# IN 2 Button
id: IN_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: "IN 2"
on_press: root.selectIN2()
DPEAButton:
# IN 3 Button
id: IN_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: "IN 3"
on_press: root.selectIN3()
Label:
# label for Sensors value
id: sensor_value
text: '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 instructions
text: 'READ BEFORE USING:\n1. Select which input you want to test\nby pressing on the associated button\n2. Then activate your switch or sensor\nwait a little bit while it is still activated\n You should see the word HIGH change to LOW\nAn * means button is selected'
font_size: 25
center_x: root.width * -0.25
y: root.height * 0.0
color: 0.0, 0.0, 0.0, 1
Label:
# label for title
text: 'Input Screen'
font_size: 40
center_x: root.width * 0.0
y: root.height * 0.45
color: 0.0, 0.0, 0.0, 1