-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDialogContainer.py
More file actions
445 lines (426 loc) · 30.1 KB
/
Copy pathDialogContainer.py
File metadata and controls
445 lines (426 loc) · 30.1 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
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
# -*- coding: utf-8 -*-
"""Dialog Container
This is just separating the dialogs out into their own class to save space and make the main code more readable
Because ATOS dialogs are 200-some lines of garbage
Contains Functions:
---PopDialog - Popup for initial startup dialog
---PopErrorDialog - Popup for missing coded points dialog
"""
import gom
def PopDialog():
STARTDIALOG_FIXTURE=gom.script.sys.create_user_defined_dialog (content='<dialog>' \
' <title>Start Dialog</title>' \
' <style>Touch</style>' \
' <control id="Empty"/>' \
' <position>left</position>' \
' <embedding>embedded_in_kiosk</embedding>' \
' <sizemode>automatic</sizemode>' \
' <size width="430" height="527"/>' \
' <content rows="15" columns="10">' \
' <widget rowspan="1" type="spacer::horizontal" row="0" column="0" columnspan="10">' \
' <name>spacer_width</name>' \
' <tooltip></tooltip>' \
' <minimum_size>386</minimum_size>' \
' <maximum_size>-1</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="spacer::vertical" row="1" column="0" columnspan="10">' \
' <name>spacer_1</name>' \
' <tooltip></tooltip>' \
' <minimum_size>0</minimum_size>' \
' <maximum_size>30</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="image" row="2" column="0" columnspan="10">' \
' <name>image</name>' \
' <tooltip></tooltip>' \
' <use_system_image>false</use_system_image>' \
' <system_image>system_message_warning</system_image>' \
' <data><![CDATA[eAEBiw108gAAAAGJUE5HDQoaCgAAAA1JSERSAAAAlgAAAFoIBgAAAForry0AAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAANFElEQVR4nO2dPXcaSRaG31vIAo2tr8CCpjUW4g+YzTYTm01mNvFOZpxtZvYXDBNuNMwvMM5mvWfO4Gwz94QTLQ43kXt0DEiaPUfyIo1BEnU3aJD1Ad1V3YC+6jnH59hSddXF/XKr6nbd24DBYDAYDAaDwWAwGAwGg8Fw/aFxdmav2I8ZXGDmPATlCLR0rgHDZZYuETkEqjV2G+/GOb6KfZIoT0AezDkQMhfbsJQOkXBJwIl347XNvc2P07QRANLJ9BMwFZiQIyB3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7MPKXmevOx3LDFG4FpnQieNERaUwhmqFGcPVc+UeC/BKND54sAgCvvJtyNRpH7bNo5QbwLXwWAAA0QsuZaRQs9RwPbg2wlLNYZyWPYZoXBthAYBQSJ9SSS8zXD0jhRWqMl1EVAqJDXsMY7h+jBRWd7ZbnqIdAMI/MDVcP4YKy3tAq1eg3mA4y1Bh9Y/GZKZsi1L9KcPN4JKwssvZxUHB/mkvlFWqGpsyQTeDS8Lq3OuUBsdZSNJUt/dSof6UKRN0MzgnLM9bnSmAEeVNC5pYlrUWFKeKWnvcMD3OCasb7xbOHr5j4sK0wg7UU3gHHhth3RTOCeticTHVt2lGxRNvsLCg8AYLw/XgVFijSiEyoTRpr9W51ymp7EITRwlnknYYxsepsEaVQiTQUmf2qDopA+wV+zFIoUCuqT91oxBAv2y1r8fgQtgCtn5kl7OLktRSjKSg6rjHN0yOGADMz92vElEmoO0f5+/Pw+91rTpYlrV2IuS/CIHjgqV0tn3eZWy4fghA4z01ROX0iv0y6porlVrdgKS66jEYjsXKUcYzTB8BeC+LVC6iQSh27nXrYQp3WJa1ll6xXwpWL5JGQMVk59w8TtO/7JT9TLtSn3+K/SlhUuwH/SeO45FS7A1Xw7m8QuW3yg+D4TJLl0i4ALuDF1WGLXcUpmSk4fpwKWHVemi9nUTtK31MYbObzKWH0HMnc4WrfiZHhKIR1c1mZIp9pGkxJAzeZxIFs1i/+YzMK2wftt88eLC4H5jrNyb6JRgLrZ3GL9MYzzBZAouC2Cv2Y8myMql1F4P3iVFpmgDorSIwE7p92N45+P3g1cL8ggtGDgT1Iv1BMKqI8detnZZZT90ytMsYpVKrG0JykYkLWm+CGKAY+zLcbCLVx/JEJvMgkWPZW7o0XfZjW0KIOgh1SdIxYjIYDAaDwWAwGAwGg8FgMBgM14X/AzXNSuIimjYLAAAAAElFTkSuQmCCr0KNUAH/ZA==]]></data>' \
' <file_name></file_name>' \
' <keep_original_size>true</keep_original_size>' \
' <keep_aspect>true</keep_aspect>' \
' <width>150</width>' \
' <height>90</height>' \
' </widget>' \
' <widget rowspan="1" type="label" row="3" column="0" columnspan="10">' \
' <name>label_title</name>' \
' <tooltip></tooltip>' \
' <text>Choose the purpose</text>' \
' <word_wrap>true</word_wrap>' \
' </widget>' \
' <widget rowspan="1" type="spacer::vertical" row="4" column="0" columnspan="1">' \
' <name>spacer_11</name>' \
' <tooltip></tooltip>' \
' <minimum_size>0</minimum_size>' \
' <maximum_size>60</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="spacer::vertical" row="4" column="1" columnspan="1">' \
' <name>spacer_12</name>' \
' <tooltip></tooltip>' \
' <minimum_size>0</minimum_size>' \
' <maximum_size>60</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="spacer::vertical" row="4" column="2" columnspan="1">' \
' <name>spacer_13</name>' \
' <tooltip></tooltip>' \
' <minimum_size>0</minimum_size>' \
' <maximum_size>60</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="spacer::vertical" row="4" column="3" columnspan="1">' \
' <name>spacer_14</name>' \
' <tooltip></tooltip>' \
' <minimum_size>0</minimum_size>' \
' <maximum_size>60</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="spacer::vertical" row="4" column="4" columnspan="1">' \
' <name>spacer_15</name>' \
' <tooltip></tooltip>' \
' <minimum_size>0</minimum_size>' \
' <maximum_size>60</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="spacer::vertical" row="4" column="5" columnspan="1">' \
' <name>spacer_16</name>' \
' <tooltip></tooltip>' \
' <minimum_size>0</minimum_size>' \
' <maximum_size>60</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="spacer::vertical" row="4" column="6" columnspan="1">' \
' <name>spacer_17</name>' \
' <tooltip></tooltip>' \
' <minimum_size>0</minimum_size>' \
' <maximum_size>60</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="spacer::vertical" row="4" column="7" columnspan="1">' \
' <name>spacer_18</name>' \
' <tooltip></tooltip>' \
' <minimum_size>0</minimum_size>' \
' <maximum_size>60</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="spacer::vertical" row="4" column="8" columnspan="1">' \
' <name>spacer_19</name>' \
' <tooltip></tooltip>' \
' <minimum_size>0</minimum_size>' \
' <maximum_size>60</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="spacer::vertical" row="4" column="9" columnspan="1">' \
' <name>spacer_20</name>' \
' <tooltip></tooltip>' \
' <minimum_size>0</minimum_size>' \
' <maximum_size>60</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="label" row="5" column="0" columnspan="2">' \
' <name>label_user</name>' \
' <tooltip></tooltip>' \
' <text>User:</text>' \
' <word_wrap>false</word_wrap>' \
' </widget>' \
' <widget rowspan="1" type="input::list" row="5" column="2" columnspan="8">' \
' <name>userlist</name>' \
' <tooltip></tooltip>' \
' <items>' \
' <item>John</item>' \
' <item>Jane</item>' \
' <item>Max</item>' \
' </items>' \
' <default>John</default>' \
' </widget>' \
' <widget rowspan="1" type="label" row="6" column="0" columnspan="2">' \
' <name>label_fixture</name>' \
' <tooltip></tooltip>' \
' <text>Fixture:</text>' \
' <word_wrap>false</word_wrap>' \
' </widget>' \
' <widget rowspan="1" type="input::string" row="6" column="2" columnspan="8">' \
' <name>inputFixture</name>' \
' <tooltip></tooltip>' \
' <value></value>' \
' <read_only>false</read_only>' \
' </widget>' \
' <widget rowspan="1" type="label" row="7" column="0" columnspan="2">' \
' <name>label_purpose</name>' \
' <tooltip></tooltip>' \
' <text>Purpose:</text>' \
' <word_wrap>false</word_wrap>' \
' </widget>' \
' <widget rowspan="1" type="input::list" row="7" column="2" columnspan="8">' \
' <name>input_purpose</name>' \
' <tooltip></tooltip>' \
' <items>' \
' <item>Production</item>' \
' <item>Training</item>' \
' <item>QC_Check</item>' \
' <item>Other</item>' \
' </items>' \
' <default>Production</default>' \
' </widget>' \
' <widget rowspan="1" type="label" row="8" column="0" columnspan="2">' \
' <name>label_template</name>' \
' <tooltip></tooltip>' \
' <text>Template:</text>' \
' <word_wrap>false</word_wrap>' \
' </widget>' \
' <widget rowspan="1" type="button::pushbutton" row="8" column="2" columnspan="8">' \
' <name>buttonTemplateChoose</name>' \
' <tooltip></tooltip>' \
' <text>Choose</text>' \
' <type>push</type>' \
' <icon_type>none</icon_type>' \
' <icon_size>icon</icon_size>' \
' <icon_system_type>ok</icon_system_type>' \
' <icon_system_size>default</icon_system_size>' \
' </widget>' \
' <widget rowspan="1" type="label" row="9" column="0" columnspan="2">' \
' <name>label_keyword_press</name>' \
' <tooltip></tooltip>' \
' <text>Press #:</text>' \
' <word_wrap>false</word_wrap>' \
' </widget>' \
' <widget rowspan="1" type="input::string" row="9" column="2" columnspan="8">' \
' <name>input_press</name>' \
' <tooltip></tooltip>' \
' <value></value>' \
' <read_only>false</read_only>' \
' </widget>' \
' <widget rowspan="1" type="label" row="10" column="0" columnspan="2">' \
' <name>label_keyword_Shift</name>' \
' <tooltip></tooltip>' \
' <text>Shift #:</text>' \
' <word_wrap>false</word_wrap>' \
' </widget>' \
' <widget rowspan="1" type="input::string" row="10" column="2" columnspan="8">' \
' <name>input_shift</name>' \
' <tooltip></tooltip>' \
' <value></value>' \
' <read_only>false</read_only>' \
' </widget>' \
' <widget rowspan="1" type="label" row="11" column="0" columnspan="2">' \
' <name>label</name>' \
' <tooltip></tooltip>' \
' <text>Mold Location</text>' \
' <word_wrap>false</word_wrap>' \
' </widget>' \
' <widget rowspan="1" type="input::list" row="11" column="2" columnspan="8">' \
' <name>input_moldloc</name>' \
' <tooltip></tooltip>' \
' <items>' \
' <item>Keating</item>' \
' <item>Port City</item>' \
' <item>36th Street</item>' \
' </items>' \
' <default>Keating</default>' \
' </widget>' \
' <widget rowspan="1" type="spacer::vertical" row="12" column="0" columnspan="10">' \
' <name>spacer</name>' \
' <tooltip></tooltip>' \
' <minimum_size>0</minimum_size>' \
' <maximum_size>-1</maximum_size>' \
' </widget>' \
' <widget rowspan="1" type="button::pushbutton" row="13" column="0" columnspan="10">' \
' <name>buttonNext</name>' \
' <tooltip></tooltip>' \
' <text>Start</text>' \
' <type>push</type>' \
' <icon_type>system</icon_type>' \
' <icon_size>icon</icon_size>' \
' <icon_system_type>ok</icon_system_type>' \
' <icon_system_size>default</icon_system_size>' \
' </widget>' \
' <widget rowspan="1" type="button::pushbutton" row="14" column="0" columnspan="10">' \
' <name>buttonExit</name>' \
' <tooltip></tooltip>' \
' <text>Exit</text>' \
' <type>push</type>' \
' <icon_type>system</icon_type>' \
' <icon_size>icon</icon_size>' \
' <icon_system_type>cancel</icon_system_type>' \
' <icon_system_size>default</icon_system_size>' \
' </widget>' \
' </content>' \
'</dialog>')
return STARTDIALOG_FIXTURE
def PopErrorDialog(missing):
ERROR=gom.script.sys.execute_user_defined_dialog (content='<dialog>' \
' <title>CODED POINTS MISSING ERROR</title>' \
' <style></style>' \
' <control id="OkCancel"/>' \
' <position></position>' \
' <embedding></embedding>' \
' <sizemode></sizemode>' \
' <size height="282" width="308"/>' \
' <content columns="1" rows="1">' \
' <widget column="0" columnspan="1" row="0" rowspan="1" type="display::text">' \
' <name>text</name>' \
' <tooltip></tooltip>' \
' <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">' \
'<html><head><meta name="qrichtext" content="1" /><style type="text/css">' \
'p, li { white-space: pre-wrap; }' \
'</style></head><body style=" ">' \
'<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">One or More Required Coded Point is Missing!</p>' \
'<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Verify Fixture is Correct for Template</li>' \
'<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Attempt Running Inspection Again</li>' \
'<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Visually Inspect Coded Points</li>' \
'<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Contact ADAC Metrology if Issue Persists</li></ul>' \
'<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Missing Points:</p>' \
'<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">'+str(missing)+'\t</p>' \
'<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></text>' \
' <wordwrap>false</wordwrap>' \
' </widget>' \
' </content>' \
'</dialog>')
return ERROR
def PopWeightDialog(sample):
SCALEDIALOG=gom.script.sys.execute_user_defined_dialog (content='<dialog>' \
' <title>SCALE INSTRUCTIONS</title>' \
' <style></style>' \
' <control id="OkCancel"/>' \
' <position>automatic</position>' \
' <embedding>always_toplevel</embedding>' \
' <sizemode>automatic</sizemode>' \
' <size height="263" width="456"/>' \
' <content columns="1" rows="1">' \
' <widget row="0" columnspan="1" column="0" type="display::text" rowspan="1">' \
' <name>text</name>' \
' <tooltip></tooltip>' \
' <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">' \
'<html><head><meta name="qrichtext" content="1" /><style type="text/css">' \
'p, li { white-space: pre-wrap; }' \
'</style></head><body style=" ">' \
'<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt; font-weight:600; text-decoration: underline;">SCALE INSTRUCTIONS:</span></p>' \
'<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600; text-decoration: underline;"><br /></p>' \
'<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" font-weight:600; text-decoration: underline;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:400; text-decoration:none;">Place the sample onto the scale</span></li>' \
'<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" font-weight:600; text-decoration: underline;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:400; text-decoration:none;">Ensure Scale is stable</span></li></ul>' \
'<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Press the OK button to close this dialog and continue</li>' \
'<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Press the &quot;Print&quot; Button on the Scale</li>' \
'<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This will repeat for every sample</li></ul>' \
'<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">PLACE CAVITY '+str(sample)+' SAMPLE ONTO SCALE AND PROCEED</span></p>' \
'<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:1; text-indent:0px;"><br /></p></body></html></text>' \
' <wordwrap>false</wordwrap>' \
' </widget>' \
' </content>' \
'</dialog>')
return SCALEDIALOG
def PopScaleError():
SCALE_ERROR=gom.script.sys.execute_user_defined_dialog (content='<dialog>' \
' <title>ERROR!</title>' \
' <style></style>' \
' <control id="OkCancel"/>' \
' <position></position>' \
' <embedding></embedding>' \
' <sizemode></sizemode>' \
' <size height="222" width="350"/>' \
' <content columns="1" rows="1">' \
' <widget row="0" columnspan="1" column="0" type="display::text" rowspan="1">' \
' <name>text</name>' \
' <tooltip></tooltip>' \
' <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">' \
'<html><head><meta name="qrichtext" content="1" /><style type="text/css">' \
'p, li { white-space: pre-wrap; }' \
'</style></head><body style=" ">' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600; text-decoration: underline;">ERROR - NO RESPONSE FROM SCALE</span></p>' \
'<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Press &quot;OK&quot; to return to the previous dialog and try again.</p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Review the instructions.</p>' \
'<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If the issue persists, contact ADAC Metrology</p></body></html></text>' \
' <wordwrap>false</wordwrap>' \
' </widget>' \
' </content>' \
'</dialog>')
return SCALE_ERROR
def PopNoSample():
SCALE_ERROR=gom.script.sys.execute_user_defined_dialog (content='<dialog>' \
' <title>ERROR!</title>' \
' <style></style>' \
' <control id="OkCancel"/>' \
' <position></position>' \
' <embedding></embedding>' \
' <sizemode></sizemode>' \
' <size height="299" width="350"/>' \
' <content columns="1" rows="1">' \
' <widget row="0" columnspan="1" column="0" type="display::text" rowspan="1">' \
' <name>text</name>' \
' <tooltip></tooltip>' \
' <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">' \
'<html><head><meta name="qrichtext" content="1" /><style type="text/css">' \
'p, li { white-space: pre-wrap; }' \
'</style></head><body style=" ">' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600; text-decoration: underline;">ERROR - NO SAMPLE ON SCALE</span></p>' \
'<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Signal is present but weight is below set limits</p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Verify scale is zeroed correctly before proceeding.</p>' \
'<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt; font-weight:600; text-decoration: underline;">TO ZERO:</span></p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Remove all items from scale.</p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Allow scale value to stabilize.</p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Press the orange &quot;RE-ZERO&quot; button</p>' \
'<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Press &quot;OK&quot; to return to the previous dialog and try again.</p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Review the instructions on the page.</p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If the issue persists, contact ADAC Metrology</p></body></html></text>' \
' <wordwrap>false</wordwrap>' \
' </widget>' \
' </content>' \
'</dialog>')
return SCALE_ERROR
def PopGenericError():
GENERIC_ERROR=gom.script.sys.execute_user_defined_dialog (content='<dialog>' \
' <title>ERROR!</title>' \
' <style></style>' \
' <control id="OkCancel"/>' \
' <position></position>' \
' <embedding></embedding>' \
' <sizemode></sizemode>' \
' <size height="207" width="363"/>' \
' <content columns="1" rows="1">' \
' <widget row="0" columnspan="1" column="0" type="display::text" rowspan="1">' \
' <name>text</name>' \
' <tooltip></tooltip>' \
' <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">' \
'<html><head><meta name="qrichtext" content="1" /><style type="text/css">' \
'p, li { white-space: pre-wrap; }' \
'</style></head><body style=" ">' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600; text-decoration: underline;">ERROR - RESTART EVALUATION</span></p>' \
'<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Press &quot;OK&quot; to return to cancel this inspection and try again.</p>' \
'<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If the issue persists, contact ADAC Metrology.</p>' \
'<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Reference Error Code: 01</p></body></html></text>' \
' <wordwrap>false</wordwrap>' \
' </widget>' \
' </content>' \
'</dialog>')
return GENERIC_ERROR
def PopNullVariable():
NULL_VAR=gom.script.sys.execute_user_defined_dialog (content='<dialog>' \
' <title>ERROR!</title>' \
' <style></style>' \
' <control id="OkCancel"/>' \
' <position></position>' \
' <embedding></embedding>' \
' <sizemode></sizemode>' \
' <size height="207" width="369"/>' \
' <content columns="1" rows="1">' \
' <widget row="0" columnspan="1" column="0" type="display::text" rowspan="1">' \
' <name>text</name>' \
' <tooltip></tooltip>' \
' <text><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">' \
'<html><head><meta name="qrichtext" content="1" /><style type="text/css">' \
'p, li { white-space: pre-wrap; }' \
'</style></head><body style=" ">' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600; text-decoration: underline;">ERROR - Variable Value Left Empty</span></p>' \
'<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">It looks like you forgot to enter an expected measured value.</p>' \
'<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Press &quot;OK&quot; to return to the previous dialog and try again.</p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Review the instructions on the page.</p>' \
'<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">If the issue persists, contact ADAC Metrology</p></body></html></text>' \
' <wordwrap>false</wordwrap>' \
' </widget>' \
' </content>' \
'</dialog>')
return NULL_VAR