opening 'file open' dialog from console

dsavitsk dsavitsk at
Tue Sep 3 06:13:42 CEST 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?



More information about the Python-list mailing list