Enhancing core features

This commit is contained in:
Mr Finchum 2024-12-27 20:55:20 +00:00
parent ba505ab382
commit e287f35240
8 changed files with 185 additions and 102 deletions

16
tui.py
View file

@ -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