stten8 beta ok

This commit is contained in:
germano laptop 2023-07-27 12:02:37 +02:00
parent d26c23c82f
commit 59cb76c443
4 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,7 @@
id="svg5" id="svg5"
xml:space="preserve" xml:space="preserve"
inkscape:version="1.2.2 (732a01da63, 2022-12-09)" inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
sodipodi:docname="5802815398.svg" sodipodi:docname="5803112815.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xlink="http://www.w3.org/1999/xlink"

Before

Width:  |  Height:  |  Size: 215 KiB

After

Width:  |  Height:  |  Size: 215 KiB

View File

@ -673,7 +673,7 @@ class Test(Widget):
self.cycle_available_steps["barcode_recipe_selection"].widget.get(data) self.cycle_available_steps["barcode_recipe_selection"].widget.get(data)
else: else:
# fixture removed # fixture removed
pass self.change_recipe()
else: else:
if data is not None: if data is not None:
self.fail_cycle() self.fail_cycle()

View File

@ -206,7 +206,7 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>120</width> <width>150</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>

View File

@ -29,7 +29,7 @@ class Test_Instructions(Test_Test):
self.svg_path=os.path.join("config","instruction_images",self.bench_name,"") self.svg_path=os.path.join("config","instruction_images",self.bench_name,"")
self.timer = QTimer() self.timer = QTimer()
self.timer.timeout.connect(self.toggle_icons) self.timer.timeout.connect(self.toggle_icons)
self.expected_input_state = True if self.step.type == "instruction" else False self.expected_input_state=True
def start(self, recipe=None, step=None, pieces=None): def start(self, recipe=None, step=None, pieces=None):
show = super().start(recipe=recipe, step=step) show = super().start(recipe=recipe, step=step)
@ -45,6 +45,7 @@ class Test_Instructions(Test_Test):
self.svg_root = etree.parse(svg_path) self.svg_root = etree.parse(svg_path)
self.svg_str = etree.tostring(self.svg_root) self.svg_str = etree.tostring(self.svg_root)
self.svg_str=etree.tostring(self.svg_root) self.svg_str=etree.tostring(self.svg_root)
self.expected_input_state = True if step.type == "instruction" else False
self.monitored_ids=self.svg_root.xpath(f'''.//*[starts-with(@id, 'sensor_')]''') self.monitored_ids=self.svg_root.xpath(f'''.//*[starts-with(@id, 'sensor_')]''')