askopenfilename() as root window
Sean DiZazzo
half.italian at gmail.com
Tue Dec 18 20:43:17 EST 2007
Is there any way to open a Tkinter.askopenfilename() without opening a
root window alongside the file chooser?
I simply want a script to open a dialog and return the chosen file's
path to stdout.
"""
from tkFileDialog import askopenfilename
print askopenfilename()
"""
...does the job, but it opens that nagging root window beside it. I
tried setting parent=None to no avail. The second window always shows
up. Any ideas?
~Sean
More information about the Python-list
mailing list