And if I pass it, 'pcx', 'fits', 'dog', 'cat', ...? John Fouhy wrote: 2009/1/23 Wayne Watson <sierra_mtnv...@sbcglobal.net>:How do I know what file types are available for asksaveasfilename? Suppose one isn't available, for example, FITS. How do I get it?You pass the file types as an argument to the function.tkFileDialog.asksaveasfilename(filetypes=[('Text', '*.txt'), ('Stuff', '*.stf'), ('Et cetera', '*.etc')]) http://www.pythonware.com/library/tkinter/introduction/x1164-data-entry.htm --
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