opening 'file open' dialog from console

dsavitsk dsavitsk at e-coli.net
Tue Sep 3 00:13:42 EDT 2002


I would like to open a file open dialog from a console on windows (2000). I
do this now using the line

>>> from tkFileDialog import *
>>> fileName = askopenfilename(filetypes=[(".txt", ".txt")], title="Select
the file")

but this opens a second window and leaves it there.  what is the best way
(tkinter or MFC) to do this w/o the second window?

thanks,

-doug





More information about the Python-list mailing list