Enhancing core features
This commit is contained in:
parent
ba505ab382
commit
e287f35240
8 changed files with 185 additions and 102 deletions
16
tui.py
16
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue