Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to set a default value for YesNo #45

Merged
merged 2 commits into from Aug 6, 2019

Conversation

hugoalvarado
Copy link
Contributor

Allow to set a default value for the YesNo prompt. Pressing enter will use the pre-defined default which is displayed in square brackets after the prompt question.

Ie:
Screen Shot 2019-05-04 at 10 31 15 PM

Usage:

YesNo("Are you a good student? ",
            default = 'y',
            word_color = colors.foreground["yellow"]),

@bchao1 bchao1 merged commit 3144a74 into bchao1:master Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants