This commit is contained in:
stten5 2023-03-25 16:20:09 +01:00
parent 20c7157b4d
commit 139371a1e6

View File

@ -233,14 +233,10 @@ try:
self.open_login() self.open_login()
def set_recipe_mode_table(self): 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): 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__": if __name__ == "__main__":
app = QApplication(sys.argv) app = QApplication(sys.argv)