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

Gooey chooses single-select for option with choices and nargs='+' or '*' #763

Open
pobocks opened this issue Nov 22, 2021 · 0 comments
Open

Comments

@pobocks
Copy link

pobocks commented Nov 22, 2021

  • OS: Windows 10/OSX
  • Python Version: 3.9.7
  • Gooey Version: 10.8.1
  • Thorough description of problem
    • Expected Behavior
      When an optional argument has nargs="+" or "*" and choices=list_of_choices, this means that several choices can be selected. I would expect either a multi-select or a way of repeating the whole widget (a + button that adds another instance of the argument or something)
    • Actual Behavior
      Any arg with choices seems to be given a single-select widget, and the text box treats everything as a single argument, preventing even manually passing multiple arguments.
  • A minimal code example -- preferably copy/pastable in the issue itself (less time figuring out how to run your code == more time debugging!)
from gooey import Gooey, GooeyParser

@Gooey
def main():
   p = GooeyParser()
   p.add_argument('-e', '--example-arg', nargs='+', choices=["value", "other_value"])
   p.parse_args()

main()
jacadzaca added a commit to jacadzaca/Gooey that referenced this issue Sep 27, 2023
jacadzaca added a commit to jacadzaca/Gooey that referenced this issue Sep 27, 2023
James471 added a commit to James471/Gooey that referenced this issue Nov 2, 2023
resolve chriskiehl#763 -- choose multiselect for options with choices and nargs…
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

1 participant