tkFileDialog and Multiple Filetypes

Fredrik Lundh fredrik at
Sat Sep 22 14:05:49 CEST 2001

"Brian" <brian.smith at> wrote:
> 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','*')])

use a tuple:

filetypes = [
    ("Image Files", ("*.jpg", "*.gif")),


<!-- (the eff-bot guide to) the python standard library:

More information about the Python-list mailing list