generated from nj-ramadhan/labtek-mbd-pykivy-geo-resistivity-meter-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreen_machine_setting.kv
236 lines (197 loc) · 5.46 KB
/
screen_machine_setting.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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
#:kivy 2.1.0
<ScreenMachineSetting>:
MDBoxLayout:
orientation: "vertical"
# header layout
MDBoxLayout:
id: header_layout
orientation: "horizontal"
padding: 20
size_hint_y: 0.1
Image:
id: logo
source:'asset/logo_rafindo.png'
size_hint_x: 0.25
allow_stretch: True
MDBoxLayout:
orientation: "vertical"
MDLabel:
id: subtitle
text: "PIPE BENDING CNC MACHINE"
halign: "center"
valign: "middle"
font_style: 'H5'
MDBoxLayout:
orientation: "horizontal"
padding: 50, 0
spacing: 50
MDFillRoundFlatIconButton:
id: comm_status
icon: "connection"
text: "Status:"
font_style: 'Button'
size_hint_x: 0.5
MDFillRoundFlatIconButton:
id: bt_iot_enable
icon: "wifi"
text: "IOT DISABLED"
font_style: 'Button'
size_hint_x: 0.5
on_release: root.exec_iot_enable()
Image:
id: logo
source:'asset/logo_polman.png'
size_hint_x: 0.25
allow_stretch: True
# title layout
MDBoxLayout:
id: layout_title
orientation: "horizontal"
size_hint_y: 0.05
MDIconButton:
id: bt_menu
icon: "menu"
size_hint_x: 0.2
on_press: root.screen_main_menu()
MDLabel:
text: "MACHINE SETTING"
halign: "center"
valign: "middle"
font_style: 'H6'
MDIconButton:
id: bt_shutdown
icon: "power"
size_hint_x: 0.2
on_press: root.exec_shutdown()
# setting layout
MDBoxLayout:
id: layout_machine_setting
orientation: "vertical"
size_hint_y: 0.80
padding:20
spacing:20
# machine illustration
Image:
id: machine_image
source:'asset/machine_setting_eff_length.png'
allow_stretch: True
size_hint_y: 0.5
MDScrollView:
id: layout_machine_setting
size_hint_y: 0.5
MDGridLayout:
cols:2
padding:20
size_hint_y: None
height: self.minimum_height
width: self.minimum_width
MDLabel:
text: "Effective Length"
font_style: 'Body1'
MDTextField:
id: input_machine_eff_length
hint_text: "Input Effective Length (mm)"
font_style: 'Body1'
input_filter: 'float'
on_text_validate: root.update()
on_focus: root.update_image(0)
MDLabel:
text: "Pipe Support Interference Pos"
font_style: 'Body1'
MDTextField:
id: input_machine_supp_pos
hint_text: "Input Pipe Support Interference Pos (mm)"
font_style: 'Body1'
input_filter: 'float'
on_text_validate: root.update()
on_focus: root.update_image(1)
MDLabel:
text: "Clamping Die Front Limit Delay Time"
font_style: 'Body1'
MDTextField:
id: input_machine_clamp_front_delay
hint_text: "Input Clamping Die Front Limit Delay Time (sec)"
font_style: 'Body1'
input_filter: 'float'
on_text_validate: root.update()
on_focus: root.update_image(2)
MDLabel:
text: "Clamping Die Rear Limit Delay Time"
font_style: 'Body1'
MDTextField:
id: input_machine_clamp_rear_delay
hint_text: "Input Clamping Die Rear Limit Delay Time (sec)"
font_style: 'Body1'
input_filter: 'float'
on_text_validate: root.update()
on_focus: root.update_image(3)
MDLabel:
text: "Pressure Die Front Limit Delay Time"
font_style: 'Body1'
MDTextField:
id: input_machine_press_front_delay
hint_text: "Input Pressure Die Front Limit Delay Time (sec)"
font_style: 'Body1'
input_filter: 'float'
on_text_validate: root.update()
on_focus: root.update_image(4)
MDLabel:
text: "Pressure Die Rear Limit Delay Time"
font_style: 'Body1'
MDTextField:
id: input_machine_press_rear_delay
hint_text: "Input Pressure Die Rear Limit Delay Time (sec)"
font_style: 'Body1'
input_filter: 'float'
on_text_validate: root.update()
on_focus: root.update_image(5)
MDLabel:
text: "Collet Clamping Delay Time"
font_style: 'Body1'
MDTextField:
id: input_machine_collet_clamp_delay
hint_text: "Input Collet Clamping Delay Time (sec)"
font_style: 'Body1'
input_filter: 'float'
on_text_validate: root.update()
on_focus: root.update_image(6)
MDLabel:
text: "Collet Opening Delay Time"
font_style: 'Body1'
MDTextField:
id: input_machine_collet_open_delay
hint_text: "Input Collet Opening Delay Time (sec)"
font_style: 'Body1'
input_filter: 'float'
on_text_validate: root.update()
on_focus: root.update_image(7)
MDLabel:
text: "Die Radius"
font_style: 'Body1'
MDTextField:
id: input_machine_die_radius
hint_text: "Input Die Radius (mm)"
font_style: 'Body1'
input_filter: 'float'
on_text_validate: root.update()
on_focus: root.update_image(7)
# MDRectangleFlatIconButton: navigation operation
MDBoxLayout:
orientation: "horizontal"
size_hint_y: 0.05
padding:20
spacing:20
MDFillRoundFlatIconButton:
id: bt_save
icon: "floppy"
text: "SAVE"
font_style: 'H6'
size_hint_x: 0.5
on_press: root.save()
MDFillRoundFlatIconButton:
id: bt_reset
icon: "folder"
text: "LOAD"
font_style: 'H6'
size_hint_x: 0.5
on_press: root.load()