How Do I Use A Gui To Open A Directory In Python 3?
I want to find the string value of the directory in Python where a few files are located. Then, I plan on using os.listdir to continue on with the script. I've tried using tkFileDi
Solution 1:
tkFileDialog changed with Python 3.x, it's now tkinter.filedialog
, a module of tkinter
Here's how to import it:
from tkinter.filedialog importaskdirectoryfolder= askdirectory()
Refer to: http://docs.python.org/3.0/library/tkinter.html#tkinter-modules
Post a Comment for "How Do I Use A Gui To Open A Directory In Python 3?"