Hello all! I have a problem concerning tkFileDialog. When I use the the askopenfilename command to open a text file it opens a tkinter window (apart from the file browsing window) which refuses to close once I've selected and opened the file. It just stays there and when clicked on says not responding.
I am using Vista, writing this file in Wing, and have the latest version of python
My code for this interaction goes like this:
This opens the file browsing window fine, but as I said leaves an unresponding tkinter window open when I've selected the file. If I ignore the window and return to the shell the file variable has the text file open fine, but that tkinter window is distracting. And if I manually close it by killing the process, then the shell no longer works.
Anyone with a quick fix?
P.S.
I have to use tkFileDialog, because it is for my university assignment
I am using Vista, writing this file in Wing, and have the latest version of python
My code for this interaction goes like this:
Code:
import tkFileDialog file = tkFileDialog.askopenfile()
Anyone with a quick fix?
P.S.
I have to use tkFileDialog, because it is for my university assignment
Comment