Gooey icon indicating copy to clipboard operation
Gooey copied to clipboard

the second MultiFileChooser get only one file

Open JoshuaShi-19 opened this issue 10 months ago • 1 comments

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.

JoshuaShi-19 avatar Apr 13 '24 19:04 JoshuaShi-19

i was not able to reproduce

windows 10 wsl2 python 3.10.12 gooey 1.0.8.1

elad-eyal avatar May 19 '24 17:05 elad-eyal