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

Pick no longer clears the page #123

Closed
gyang2300 opened this issue Apr 24, 2024 · 2 comments
Closed

Pick no longer clears the page #123

gyang2300 opened this issue Apr 24, 2024 · 2 comments

Comments

@gyang2300
Copy link

What happens: You ask the user to pick from list 1 and he picks something. You ask the user to pick from list 2 (The screen is not refreshed properly)

Expected Behavior: The second time you want the user to pick from a list, the screen should have refreshed.

Reproducible in pick v2.3.1
Not reproducible with previous pick versions.

Sample code on python 3.11.5 / pick 2.3.1 to demonstrate.

#!/usr/bin/env python3

from pick import pick

title1 = 'Please choose your favorite programming language: '
title2 = 'Pick your fruit'
options1 = ['java', 'python', 'C++', 'Visual Basics', 'Perl']
options2 = ['apple','oranges','watermelon']
option1, index = pick(options1, title1)
option2, index = pick(options2, title2)

print(f"What does {option2} have to do with {option1}")

@aisk
Copy link
Owner

aisk commented Apr 25, 2024

Thanks for reporting, see #124

@aisk
Copy link
Owner

aisk commented Apr 25, 2024

Released with v2.3.2.

@aisk aisk closed this as completed Apr 25, 2024
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

No branches or pull requests

2 participants