Python; User Prompts; choose multiple files
Question: I would like to have my code bring up a window where you can select multiple
files within a folder and it assigns these filenames to elements of a list.

Currently, I can only select a single file at a time and it assigns the
filename to a single variable.

    
    
    from Tkinter import Tk
    from tkFileDialog import askopenfilename
    
    Tk().withdraw()
    filename = askopenfilename()
    

Thank you.


Answer: You need to use the `askopenfilenames` method instead.

