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

the second MultiFileChooser get only one file #910

Open
JoshuaShi-19 opened this issue Apr 13, 2024 · 1 comment
Open

the second MultiFileChooser get only one file #910

JoshuaShi-19 opened this issue Apr 13, 2024 · 1 comment

Comments

@JoshuaShi-19
Copy link

Win10;Python 3.10;Gooey 1.0.8.1.

my code like this:

@Gooey(language='chinese', program_name=" test", default_size=(1000, 600))
def gui_start():
    parser = GooeyParser(description="test")

    parser.add_argument('pred_files', metavar='pred file path', help='can choose multi file', nargs='+', widget='MultiFileChooser')
    parser.add_argument('train_files', metavar='train file path', help='can choose multi file', nargs='+', widget='MultiFileChooser')
    args = parser.parse_args()
    print(args.pred_files)
    print(args.train_files)

I choose multi files in both parameter,but train_files pint only one file,while pred_files pint multi files.
When I interchanged the position of two lines of parameter code like this:

parser.add_argument('train_files', metavar='train file path', help='can choose multi file', nargs='+', widget='MultiFileChooser')
parser.add_argument('pred_files', metavar='pred file path', help='can choose multi file', nargs='+', widget='MultiFileChooser')

pred_files pint only one file,while train_files pint multi files.
It looks like the following code is going to be wrong.
by the way,my file names has blank space.

@elad-eyal
Copy link
Contributor

elad-eyal commented May 19, 2024

i was not able to reproduce

windows 10 wsl2 python 3.10.12 gooey 1.0.8.1

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