[Tutor] Available filetypes for AskSaveasfilenam in Tkinter?
John Fouhy
john at fouhy.net
Fri Jan 23 03:34:56 CET 2009
2009/1/23 Wayne Watson <sierra_mtnview at sbcglobal.net>:
> What I'm getting at it is when I see something in a program as:
> path = asksaveasfilename(defaultextension=".jpg",
> title="Save as JPEG",
> initialfile=default_path,
> filetypes=IMAGE_FILE_TYPES)
>
> I'm guessing when the program executes this, it's really saves a file in the
> jpg format.
[...]
All asksaveasfilename does is give you a filename/path. You then have
to open the file and write the data to it. It's up to you to make
sure the data is in the right format..
--
John.
More information about the Tutor
mailing list