How to I access the filename with TkFileDialog?

Vincent Wehren vincent at visualtrans.de
Fri Feb 18 01:06:11 EST 2005


imphasing wrote:
> I'm writing a python program to open a file, and display it onscreen,
> but I can't seem to find the var that "tkOpenFileName" returns to. It's
> not much use if you can't get the filename you just chose, so there
> must be a way to get it. Could anyone help me?
> 
> Thanks,
> Alex
> 

openfilename=tkFileDialog.askopenfilename(filetypes=[("all files", "*")])

--

Vincent Wehren



More information about the Python-list mailing list