tkFileDialog and Multiple Filetypes
Brian
brian.smith at thr.ca
Fri Sep 21 12:01:51 EDT 2001
I haven't been able to turn up an example of specifying more than one
file type per line.e.g
n=askopenfilename(filetypes=[("Image Files","*.jpg;*.gif"),
("JPEG",'*.jpg'),
("GIF",'*.gif'),
('All','*')])
This results in a TCL error. I don't want to select multiple files, I
just want to display multiple types. Is there a way of doing this?
Thanks in advance.
More information about the Python-list
mailing list