This commit is contained in:
stten5 2023-03-25 16:09:23 +01:00
parent 571c518707
commit 20c7157b4d
3 changed files with 8 additions and 6 deletions

View File

@ -194,8 +194,8 @@ try:
else:
self.main_window.save_tecna_recipes_a.setVisible(False)
self.main_window.selection_table_a.triggered.connect(self.set_recipe_mode_table)
self.main_window.selection_barcode_a.triggered.connect(self.set_recipe_mode_barcode)
self.main_window.table_selection_a.triggered.connect(self.set_recipe_mode_table)
self.main_window.barcode_selection_a.triggered.connect(self.set_recipe_mode_barcode)
# OPEN LOGIN TAB
self.open_login()
# SHOW MAIN WINDOW
@ -234,11 +234,13 @@ try:
def set_recipe_mode_table(self):
if type(self.main_window.centralWidget) is Test:
self.main_window.centralWidget.set_recipe_mode_table()
self.main_window.centralWidget.change_recipe()
self.main_window.centralWidget.set_recipe_mode_table()
def set_recipe_mode_barcode(self):
if type(self.main_window.centralWidget) is Test:
self.main_window.centralWidget.set_recipe_mode_barcode()
self.main_window.centralWidget.change_recipe()
self.main_window.centralWidget.set_recipe_mode_barcode()
if __name__ == "__main__":
app = QApplication(sys.argv)

View File

@ -27,7 +27,7 @@ class Barcode_Recipe_Selection(Widget):
self.status_palettes["warning"].setColor(QPalette.Base, QColor(255, 165, 0))
self.status_palettes[""].setColor(QPalette.Base, QColor(255, 255, 0))
self.recipe_selection_b.clicked.connect(self.parent.change_recipe)
self.recipe_selection_b.clicked.connect(self.parent.set_recipe_mode_table)
self.barcode_input_l.setFocus()
self.focus_timer = QTimer()

View File

@ -99,7 +99,7 @@ class Test(Widget):
"resistance": Test_Assembly(img_path=None, text=u"COLLEGARE CONNETTORE ELETTRICO PER EFFETTUARE PROVA RESISTENZA", widget=Test_Resistance(components=self.components, recipe=self.recipe, step=self.step, pieces=self.pieces)),
"screws": Test_Assembly(img_path=None, text=u"AVVITARE TUTE LE VITI COME INDICATO", widget=Test_Screws(components=self.components, recipe=self.recipe, step=self.step, pieces=self.pieces)),
"select_recipe": Test_Assembly(img_path=None, text=u"SELEZIONARE IL CODICE DA COLLAUDARE", widget=Recipe_Selection(config=self.config, unsupported_steps=self.unsupported_steps)),
"barcode_recipe_selection": Test_Assembly(img_path=self.select_step_img("scan"), text=u"LEGGERE IL BARCODE SULLA DIMA DEL COMPONENTE DA COLLAUDARE", widget=Barcode_Recipe_Selection(config=self.config)),
"barcode_recipe_selection": Test_Assembly(img_path=self.select_step_img("scan"), text=u"LEGGERE IL BARCODE SULLA DIMA DEL COMPONENTE DA COLLAUDARE", widget=Barcode_Recipe_Selection(parent=self)),
"vision": Test_Assembly(img_path=None, text=u"VERIFICARE CONTROLLO CON TELECAMERA", widget=Test_Vision(components=self.components, recipe=self.recipe, step=self.step, pieces=self.pieces)),
"wait": Test_Assembly(img_path=self.select_step_img("wait"), text=u"ATTENDERE - PAUSA INTER CICLO", widget=None),
None: Test_Assembly(img_path=self.select_step_img("warning"), text=u"ATTENZIONE - LA RICETTA SELEZIONATA NON CONTIENE FASI DI TEST", widget=None),