new label template visualisation during test leak
This commit is contained in:
parent
f0b4bcfd9e
commit
071cc22127
|
|
@ -475,6 +475,7 @@ class Test(Widget):
|
|||
}))
|
||||
skip.add(i + 1)
|
||||
if step.step_type == "print":
|
||||
self.print_template = step.spec.get("template", "EtichettaR5") # Store the template
|
||||
if print_found:
|
||||
continue
|
||||
steps.insert(i, Step(step_type="done"))
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class Test_Leak(Test_Test):
|
|||
self.test_num_l.setText("2/2")
|
||||
else:
|
||||
self.test_num_l.setText("1/1")
|
||||
|
||||
self.template_print_l.setText(f"{self.parent.print_template}")
|
||||
self.recipe_pressure_l.setText(f"{self.step.spec['test_pressure']}")
|
||||
self.leak_min_l.setText(f"{self.step.spec['test_pressure_qneg']}")
|
||||
self.leak_max_l.setText(f"{self.step.spec['test_pressure_qpos']}")
|
||||
|
|
|
|||
|
|
@ -2254,6 +2254,48 @@ border: 1px solid black;
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="7" colspan="2">
|
||||
<widget class="QLabel" name="template_print_l">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>16</pointsize>
|
||||
<weight>50</weight>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(255, 255, 255);
|
||||
border: 1px solid black;
|
||||
</string>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>-</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="4">
|
||||
<widget class="QLabel" name="label_23">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>16</pointsize>
|
||||
<weight>50</weight>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::LeftToRight</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Etichetta Selezionata</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user