stten7 fix

This commit is contained in:
stten7 2023-09-05 15:07:28 +02:00
parent 987698cc8d
commit 8c24b3a783
4 changed files with 30 additions and 12 deletions

View File

@ -8,9 +8,9 @@ label_printer: present
extra_label_printer: present
remote_api: absent
tecna_t3: present
digital_io: present
digital_io: absent
barcode_recipe_selection: present
show_instructions: yes
show_instructions: no
[tecna_t3]
port: COM4
@ -28,7 +28,7 @@ printer: zd421
[extra_label_printer]
platform: windows
printer: xlp504
printer: zt231
[digital_io]
@ -90,10 +90,12 @@ filling_time: 15
settling_time: 10
settling_pressure_min_percent: 5
settling_pressure_max_percent: 5
test_time: 10
test_pressure_qneg: 10
test_pressure: 5000
test_pressure_qpos: 5
test_time: 10
test_pressure_qpos: 7
test_pressure_qneg: 17
test_pressure_tt_qpos: 1 # Q+ Upper test leak limit (tube-tube) (positive mbar)
test_pressure_tt_qneg: 5 # Q- Lower test leak limit (tube-tube) (negative mbar)
flush_time: 1
flush_pressure: 100
relay_config: 1

View File

@ -326,15 +326,15 @@ class Test(Widget):
elif self.step.type == "wait":
self.next_timer.start(1000)
# UPDATE COUNT DISPLAY
self.updaate_count_display()
self.update_count_display()
def count_reset(self):
def reset_count(self):
# COUNT RESET
self.pieces["ok"] = 0
self.pieces["ko"] = 0
self.updaate_count_display()
self.update_count_display()
def updaate_count_display(self):
def update_count_display(self):
self.pieces_count_l.setText(f"{self.pieces['ok']} OK / {self.pieces['ko']} NOK / {sum(self.pieces.values())} TOT")
def set_recipe(self, recipe=None):

View File

@ -19,6 +19,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -72,6 +73,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -85,6 +87,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -104,6 +107,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -135,6 +139,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -148,6 +153,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -189,6 +195,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -220,6 +227,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -233,6 +241,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -249,6 +258,7 @@
<property name="font">
<font>
<pointsize>16</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -265,6 +275,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -294,6 +305,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -324,6 +336,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -340,6 +353,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -356,6 +370,7 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -368,11 +383,12 @@
</widget>
</item>
<item row="1" column="8" rowspan="2">
<widget class="QPushButton" name="reset_cont_b">
<widget class="QPushButton" name="reset_count_b">
<property name="font">
<font>
<family>DejaVu Sans</family>
<pointsize>11</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>

View File

@ -32,7 +32,7 @@ class Test_Leak(Test_Test):
def reset(self):
self.components["tecna_t3"].stop_test()
super.reset()
super().reset()
def stop_test(self):
self.components["tecna_t3"].stop_test()