I would recommend to run my code (it uses EasyGui), here in github: https://github.com/UnknownBob123/The-pro...n/TEST1.py
When I click the 'Find' button on the easygui options window in my program, I type the name of the 'card' I want to search for, and then I press OK, and it displays it in a EasyGui window. However, when I add a card, I want it to do exactly that as the 'find' function, but instead display the inputted code when you click on "Add Card". And I also am struggling to find a way to display the card details for the 'delete' option, exactly as the find option but to display the card you want to delete in a gui window.
This is probably a simple manipulation of the show_menu() function, however I am not sure how to alter the add_items() function and delete() function to display the card details in a gui window.
I would appreciate any help to display the card details in a separate gui window, just like the "Find" button. The find button is the only button that shows the card details, apart from the output button which shows the entire nested dictionary.
This is the find button, where the details actually pop-up, you may get an idea of where I am getting at with the delete/add card option.
When I click the 'Find' button on the easygui options window in my program, I type the name of the 'card' I want to search for, and then I press OK, and it displays it in a EasyGui window. However, when I add a card, I want it to do exactly that as the 'find' function, but instead display the inputted code when you click on "Add Card". And I also am struggling to find a way to display the card details for the 'delete' option, exactly as the find option but to display the card you want to delete in a gui window.
This is probably a simple manipulation of the show_menu() function, however I am not sure how to alter the add_items() function and delete() function to display the card details in a gui window.
I would appreciate any help to display the card details in a separate gui window, just like the "Find" button. The find button is the only button that shows the card details, apart from the output button which shows the entire nested dictionary.
This is the find button, where the details actually pop-up, you may get an idea of where I am getting at with the delete/add card option.
def search(): '''Searches for specified combo in the menu. If the combo is in the menu, the combo details are displayed on screen. Otherwise, the user is told that there is no such combo and given the option to add the combo. ''' msg = "Enter card name:" title = "Card to search for" search = easygui.enterbox(msg, title) # Calls function to check whether the combo already exists combo = check_exists(search) if combo: # Calls function to display combo details on screen. show_menu(combo) else: # If the combo does not exist, the user is told this and # given the option to add the combo. msg = "There is no such combo on the menu.\nWould you like to add the combo?" title = "Card does not exist" choices = ["Yes", "No"] add = easygui.buttonbox(msg, title, choices) if add == "Yes": add_combo() # Calls function to add a combo.