Upload files to "Modules"

This commit is contained in:
2024-11-26 22:47:18 -05:00
parent 1f32840dda
commit ad88741aa7
4 changed files with 45 additions and 3 deletions

View File

@ -1,5 +1,8 @@
import sys # For exiting the program
from Modules.wrappers import *
from Modules.Submenus.analyst_notebook import analyst_notebook_submenu
from Modules.Submenus.about import about_submenu
# Global action status to persist across all submenus and their nested submenus
GLOBAL_ACTION_STATUS = {}
@ -74,12 +77,18 @@ def build_submenu(menu_title, actions=None, module=None):
else:
print(f"{Style.RESET_ALL}[{key}] {status} {action['description']}")
print("[0] Return to Main Menu")
print("[0] Return to Previous Menu")
print("[q] EXIT\n")
# Get user choice
choice = input("Enter your choice: ").strip().upper()
# Handle global commands
if choice in ["NOTE", "ABOUT"]:
global_command_handler(choice)
continue
# Handle highlighting (toggle with "!")
if choice.endswith("!") and choice[:-1] in numbered_actions:
key_to_toggle = choice[:-1]