tkFileDialog and Multiple Filetypes

Brian brian.smith at thr.ca
Sat Sep 22 14:44:33 EDT 2001


Fredrik wrote: 
> use a tuple:
> 
> filetypes = [
>     ("Image Files", ("*.jpg", "*.gif")),
>     ("JPEG",'*.jpg'),
>     ("GIF",'*.gif'),
>     ('All','*')
>     ]

Thanks. I should probably get the "use a tuple" phrase tattooed
somewhere. It often seems to be the answer!



More information about the Python-list mailing list