On 18 dic, 22:43, Sean DiZazzo <[EMAIL PROTECTED]> wrote:

> 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.

Yes, create the root yourself so you can call the withdraw() method:

root = Tk()
root.withdraw()
print askopenfilename()

--
Gabriel Genellina
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to