Results 1 to 2 of 2

Thread: Recipe Manager

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Recipe Manager

    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
    Last edited by gecko2903; 12th February 2017 at 17:10.

Similar Threads

  1. Replies: 1
    Last Post: 24th August 2011, 12:34
  2. Qt Memory manager
    By bunjee in forum Qt Programming
    Replies: 3
    Last Post: 19th August 2009, 17:43
  3. QXmlQuery problems - recipe example doesn't work
    By nhelseth in forum Qt Programming
    Replies: 0
    Last Post: 16th January 2009, 21:45
  4. Download Manager Like IDM(Internet Download Manager)
    By sathiskumarmsk in forum Qt Programming
    Replies: 1
    Last Post: 27th July 2008, 15:52
  5. mapping manager
    By sreedhar in forum Qt Programming
    Replies: 6
    Last Post: 16th February 2007, 13:48

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.