Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tkinter askopenfilename doesn't allow multiple file selection

Tags:

python

tkinter

All references I can find for askopenfilename suggest that it should allow me to open multiple files within the dialog. Unfortunately that is not working for me. I'm running this under Python 2.7.

from Tkinter import *
from tkFileDialog import askopenfilename

filenames = askopenfilename(parent=root,filetypes=[("CSV Files",".csv")])

Both Ctrl and Shift left-mouse do not change the behavior

Enlightenment is most appreciated.

like image 916
user3073001 Avatar asked Apr 02 '15 14:04

user3073001


1 Answers

Apologies all. I'll blame this on a lack of caffeine.

The command should be askopenfilenames

like image 136
user3073001 Avatar answered Oct 01 '22 07:10

user3073001