st ten 10 print_button and instructions wip

This commit is contained in:
Edo 2024-03-18 13:22:19 +01:00
parent 89fae6cfa1
commit bd37d53bb4

View File

@ -62,6 +62,12 @@ class Test_Instructions(Test_Test):
return show return show
def toggle_icons(self): def toggle_icons(self):
default_image_path = os.path.join("config", "instruction_images", self.config["machine"]["instruction_folder"],
"DEFAULT.svg")
if self.svg_path is None or self.svg_path == default_image_path:
if hasattr(self,
"print_b") and not self.done: # Verifica se il pulsante di stampa è abilitato e non è stato premuto
self.flag = not self.flag self.flag = not self.flag
for elem in self.tape_ids: for elem in self.tape_ids: