I am doing a small project in Python and I would like to browse a file or directory to get their path.
I am using Tkinter and I could not find the file browser only:
filename = tkFileDialog.askopenfilename(parent=root,title='Open file to encrypt')
or just the directory browser:
dir = tkFileDialog.askdirectory(parent=root, title='Open file to encrypt')
Is it possible to combine these two? Drop all the answers!
source share