generated from nj-ramadhan/polman-dsk-pykivy-cnc-pipe-bending-machine-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreen_maintenance.kv
194 lines (172 loc) · 4.29 KB
/
screen_maintenance.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
#:kivy 2.1.0
<ScreenMaintenance>:
MDBoxLayout:
orientation: "vertical"
# header layout
MDBoxLayout:
id: layout_header
orientation: "horizontal"
padding: 20
spacing: 50
size_hint: 1, 0.15
MDLabel:
id: subtitle
text: "WATER REFILL STATION"
halign: 'center'
valign: 'middle'
bold: True
font_size: 32
color: 0, 0, 0
Image:
id: logo
source:'asset/Logo_Main.png'
size_hint_x: 0.25
allow_stretch: True
# choose product layout
MDBoxLayout:
id: layout_title
orientation: "vertical"
md_bg_color: app.theme_cls.primary_color
size_hint: 1, 0.1
padding:10
spacing:10
MDLabel:
text: "MAINTENANCE SCREEN"
halign: 'center'
valign: 'middle'
bold: True
font_size: 24
color: 1, 1, 1
size_hint_y: 0.1
MDBoxLayout:
id: layout_maintenance
orientation: "vertical"
md_bg_color: app.theme_cls.accent_color
size_hint: 1, 0.75
padding:10
spacing:10
Image:
source:'asset/plant.png'
size_hint_x: 0.9
allow_stretch: True
MDRelativeLayout:
MDLabel:
id: lb_level_main
halign: 'center'
valign: 'middle'
bold: True
font_size: 21
color: app.theme_cls.primary_color
md_bg_color: app.theme_cls.accent_color
size_hint: 0.1, 0.08
pos_hint: {"center_x": 0.3, "center_y": .4}
MDLabel:
id: lb_level_cold
halign: 'center'
valign: 'middle'
bold: True
font_size: 21
color: app.theme_cls.primary_color
md_bg_color: app.theme_cls.accent_color
size_hint: 0.1, 0.08
pos_hint: {"center_x": 0.67, "center_y": .5}
MDLabel:
id: lb_level_normal
halign: 'center'
valign: 'middle'
bold: True
font_size: 21
color: app.theme_cls.primary_color
md_bg_color: app.theme_cls.accent_color
size_hint: 0.1, 0.08
pos_hint: {"center_x": 0.81, "center_y": .5}
MDFillRoundFlatIconButton:
id: bt_valve_cold
icon: "valve"
text: "VALVE COLD"
font_size: 14
size_hint: 0.12, 0.08
pos_hint: {"center_x": 0.57, "center_y": .7}
on_press: root.act_valve_cold()
MDFillRoundFlatIconButton:
id: bt_valve_normal
icon: "valve"
text: "VALVE NORMAL"
font_size: 14
size_hint: 0.12, 0.08
pos_hint: {"center_x": 0.85, "center_y": .7}
on_press: root.act_valve_normal()
MDFillRoundFlatIconButton:
id: bt_pump_main
icon: "pump"
text: "PUMP MAIN"
font_size: 14
size_hint: 0.12, 0.08
pos_hint: {"center_x": 0.33, "center_y": .05}
on_press: root.act_pump_main()
MDFillRoundFlatIconButton:
id: bt_maintenance
icon: "cog"
text: "MAINTENANCE STATE"
font_size: 14
size_hint: 0.2, 0.08
pos_hint: {"center_x": 0.1, "center_y": .05}
on_press: root.act_maintenance()
MDFillRoundFlatIconButton:
id: bt_pump_cold
icon: "pump"
text: "PUMP COLD"
font_size: 14
size_hint: 0.12, 0.08
pos_hint: {"center_x": 0.57, "center_y": .25}
on_press: root.act_pump_cold()
MDFillRoundFlatIconButton:
id: bt_pump_normal
icon: "pump"
text: "PUMP NORMAL"
font_size: 14
size_hint: 0.12, 0.08
pos_hint: {"center_x": 0.89, "center_y": .25}
on_press: root.act_pump_normal()
MDFillRoundFlatIconButton:
id: bt_open
icon: "water"
text: "OPEN"
font_size: 14
size_hint: 0.12, 0.08
pos_hint: {"center_x": 0.7, "center_y": .15}
on_press: root.act_open()
MDFillRoundFlatIconButton:
id: bt_close
icon: "close"
text: "CLOSE"
font_size: 14
size_hint: 0.12, 0.08
pos_hint: {"center_x": 0.7, "center_y": .06}
on_press: root.act_close()
MDFillRoundFlatIconButton:
id: bt_up
icon: "arrow-up"
text: "UP"
font_size: 14
size_hint: 0.12, 0.08
pos_hint: {"center_x": 0.57, "center_y": .15}
on_press: root.act_up()
on_release: root.act_stop()
MDFillRoundFlatIconButton:
id: bt_down
icon: "arrow-down"
text: "DOWN"
font_size: 14
size_hint: 0.12, 0.08
pos_hint: {"center_x": 0.57, "center_y": .06}
on_press: root.act_down()
on_release: root.act_stop()
MDFillRoundFlatIconButton:
id: bt_exit
icon: "logout"
text: "EXIT"
font_size: 28
size_hint: 0.2, 0.1
pos_hint: {"center_x": .9, "center_y": .1}
on_press: root.exit()