Title: Signature.html
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. If I want to use some offbeat format like pcx (it's a real graphics format), it's actually going to create the file in that format. In other words, what stops me from using any old fictional format like 'cat', or how do I know what the authorized list of format is?

John Fouhy wrote:
2009/1/23 Wayne Watson <sierra_mtnv...@sbcglobal.net>:
  
And if I pass it, 'pcx', 'fits', 'dog', 'cat', ...?
    

I don't understand your question.  You can certainly do this:

tkFileDialog.asksaveasfilename(filetypes=[('PCX files', '*.pcx'),
('FITS files', '*.fits'), ('Dogs', '*.dog')])

If that's not what you want, you need to explain yourself better..

  

--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
            
             "The creation of the world did not occur at the 
              beginning of time; it occurs every day." -- M. Proust

                    Web Page: <www.speckledwithstars.net/>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to