pytermgui
pytermgui copied to clipboard
[REQUEST] Examples for selecting from multiple options
Describe the solution you'd like I am looking for a widget that will allow me to set a list of options for a user to choose from, as well as to set a default option.
Case 1: Allow a single option to be selected. i.e. a set of radio buttons, or a drop down list. Provide a visual indication of which option is currently selected. Returns selected arg as string.
Case 2: Allow multiple selections.
Collection of Checkboxes or toggles would work here.
Visual indication of which options are currently selected.
Deselect option on second click..
Returns one more selected args as a list of strings.
Describe alternatives you've considered I've considered creating separate widgets for each of the possible options for each multi-choice input arg of my script. This makes it messy to enforce single option selection (see case 1).
Is this feature present in other TUI products? Not sure.