Skip to content
Advertisement

Tk Filedialog giving back a tuple

I am trying to take a file and put it into all directories 1 level down.

JavaScript
JavaScript

I thought that this would be simple, what am I doing wrong?

Advertisement

Answer

Since it is “askopenfilenames“, it returns the results in the form of a tuple. You can iterate over it and move the files to the directory selected:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement