SelectionMenu — Quickly get a selection¶
Bases: cursesmenu.CursesMenu
-
class
cursesmenu.
SelectionMenu
(strings, title=None, subtitle=None, show_exit_option=True)¶ A menu that simplifies item creation, just give it a list of strings and it builds the menu for you
Variables: strings (list[str]) – The list of strings this menu should be built from -
classmethod
get_selection
(strings, title='Select an option', subtitle=None, exit_option=True, _menu=None)¶ Single-method way of getting a selection out of a list of strings
Parameters: - strings (list[str]) – the list of string used to build the menu
- _menu (list) – should probably only be used for testing, pass in a list and the created menu used internally by the method will be appended to it
-
classmethod