Skip to content

Menu_old

mikeee1 edited this page Mar 28, 2023 · 1 revision

simple_console_menu.Menu_old

Functions

SimpleConsoleMenu(menuName: str, menuItems: list, inputQuestion='What do you want to do:', menuSize=76, autoAddQuit=False, onlyReturnNumber=True, allowedCharacters='', acceptedQuitCharacters='') ‑> int | str
:Makes a menu
parameters: menuName - Required : name of the menu (Str)
menuItems - Required : menu items ["item 1","item 2"] (List)
inputQuestion - Optional : Question input (Str)
menuSize - Optional : Size of the menu (Int)
autoAddQuit - Optional : automatically add a quit option (Bool)
onlyReturnNumber - Optional : only numbers are allowed to return (Bool)
allowedCharacters - Optional : specifier which character(s) are allowed if onlyReturnNumber is False, separated with ';' (str)
acceptedQuitCharacters - Optional : specifier which character is allowed if onlyReturnNumber is False for quit (str)

SimpleConsoleMenuBlock(menuName: str, menuItems: list, inputQuestion='What do you want to do:', menuSize=76, autoAddQuit=False, onlyReturnNumber=True, allowedCharacters='', acceptedQuitCharacters='') ‑> int | str
:Makes a menu with a box arround it
parameters:
menuName - Required : name of the menu (Str)
menuItems - Required : menu items ["item 1","item 2"] (List)
inputQuestion - Optional : Question input (Str)
menuSize - Optional : Size of the menu (Int)
autoAddQuit - Optional : automatically add a quit option (Bool)
onlyReturnNumber - Optional : only numbers are allowed to return (Bool)
allowedCharacters - Optional : specifier which character(s) are allowed if onlyReturnNumber is False, separated with ';' (str)
acceptedQuitCharacters - Optional : specifier which character is allowed if onlyReturnNumber is False for quit (str)

Clone this wiki locally