Tkinter, tkFileDialog - how to select multiple files ?

S

Steve Offutt

Let me preface by saying that I don't do much Python, however, I am in
my spare time, attempting to become somewhat comfortable with Python/
Tkinter.

I just can't seem to understand what is the problem with this:

------
import Tkinter, tkFileDialog

root = Tkinter.Tk()

files = tkFileDialog.askopenfilenames(parent = root, filetypes =
[('JPEG', '*.jpg'), ('ICON', '*.ico'), ('GIF', '*.gif')], title =
"Select files...", multiple = 1 )

print files
 
S

Steve Offutt

Hmm ... sorry folks - this works for me everywhere except on the
machine I wrote it on ...

Must be some sort of configuration problem...

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top