Skip to content

Pattern

A select widget that allows a single selection from a list of choices with pattern filtering.

Example

Example

from inquirer_textual import prompts

if __name__ == '__main__':
    result = prompts.pattern('Select element:', ['Hydrogen', 'Helium', 'Lithium', 'Beryllium', 'Boron',
                                               'Carbon'])
    print(result)