From bbe3aaeba57f742fec6ddd0bb0861a6bbdabe9d8 Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Sat, 21 Aug 2021 12:50:40 +0300 Subject: [PATCH] Fixed ownoptions Enter button --- GTAwhatToBuy/GTAwhatToBuy.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/GTAwhatToBuy/GTAwhatToBuy.py b/GTAwhatToBuy/GTAwhatToBuy.py index 851d1e9..fe8de43 100644 --- a/GTAwhatToBuy/GTAwhatToBuy.py +++ b/GTAwhatToBuy/GTAwhatToBuy.py @@ -206,7 +206,7 @@ def ownmenu(stdscr): elif key == curses.KEY_DOWN and current_row < len(menulist["ownoptions"])-1: current_row += 1 - elif key == curses.KEY_ENTER: + elif key == curses.KEY_ENTER or key in [10, 13]: if current_row == len(menulist["ownoptions"])-1: mainmenu(stdscr) break @@ -469,5 +469,9 @@ while True: input("To go back to menu press Enter...") softcls() - elif doing == "228": - curses.wrapper(mainmenu) + elif doing == menulist["ownoptions"][0]: + print("Which item you would like to change?") + whattodonow = input("1 - Print all items\n2 - Search item\nType here: ") + + input("To go back to menu press Enter...") + softcls()