I am trying to create a Recipe Manager using PyQT. I have created a main window that displays all the recipes within a selected folder.
I am trying to implement a New Recipe button to allow for new recipes to be created and stored in a text file.
To do this I have created two dialog windows.
The first window is used to enter the recipe name and the number of ingredients, and the second to enter each ingredient.
However, I need some help displaying the ingredient window the required amount of time e.g. if the number of ingredients is 2, the ingredient window must be opened once, get the input and store in the text file, and then reopened for the second ingredient in the recipe.
Is there any way to wait until the window has been closed?
e.g. for x in range(0, Number of ingredients):
self.IngredientWindow.show()
wait untill IngredientWindow has been closed
Any help on this would be much appreciated.
EDIT: Would the structure be similar to this question: http://stackoverflow.com/questions/8...qwidget-closes
Not sure how to apply this to Python
Bookmarks