Beispiel #1
0
    def open_recipe_editor(self):
        """Method used to open Recipe Editor Window with an existing recipe."""
        self.editorWindow = recipeeditorwindow.RecipeEditor(recipeLocation = self.currentlySelectedRecipePath)
        self.editorWindow.exec_()

        # Used to update the recipe in the recipes tab after editing
        self.load_recipe_file(self.selectedFilePath)
Beispiel #2
0
    def create_new_recipe(self):
        """Method used to open Recipe Editor Window for a new recipe."""
        self.editorWindow = recipeeditorwindow.RecipeEditor()
        self.editorWindow.exec_()

        # Used to update the recipe in the recipes tab after creation
        try:
            self.load_recipe_file(self.selectedFilePath)
        except AttributeError:
            pass
        except IsADirectoryError:
            pass