diff --git a/tui.py b/tui.py index 8f1533e..f8abd32 100644 --- a/tui.py +++ b/tui.py @@ -44,13 +44,15 @@ class SimpleTUI: def yes_no_menu(self, message): # oh menu_options = ["[y] yes", "[n] no"] - menu = TerminalMenu(menu_entries = menu_options, - title = f"{message}", - menu_cursor = "> ", - menu_cursor_style = ("fg_red", "bold"), - menu_highlight_style = ("bg_gray", "fg_black"), - cycle_cursor = True, - clear_screen = False) + menu = TerminalMenu( + menu_entries = menu_options, + title = f"{message}", + menu_cursor = "> ", + menu_cursor_style = ("fg_red", "bold"), + menu_highlight_style = ("bg_gray", "fg_black"), + cycle_cursor = True, + clear_screen = False + ) menu_entry_index = menu.show() if menu_entry_index == 0: return True diff --git a/utility.py b/utility.py index 055bf37..6f09597 100644 --- a/utility.py +++ b/utility.py @@ -9,7 +9,6 @@ class Utilities: with open(yaml_file, "r") as file: data = yaml.safe_load(file) return data - except (FileNotFoundError, PermissionError) as e: print(f"Error loading settings file: {e}") return @@ -18,7 +17,6 @@ class Utilities: try: with open(yaml_file, "w") as file: yaml.dump(data, file) - except PermissionError as e: print(f"Error saving setings: {e}") @@ -41,7 +39,6 @@ class Utilities: progress = int((barsize / total) * current) rest = barsize - progress if rest <= 2: rest = 0 - # Determine the number of digits in total total_digits = len(str(total)) # Format current with leading zeros