Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tkinter filedialog get directory path

import Tkinter, tkFileDialog
root = Tkinter.Tk()
root.withdraw()
dirname = tkFileDialog.askdirectory(parent=root,initialdir="/",title='Please select a directory')
print(dirname)
 
PREVIOUS NEXT
Tagged: #tkinter #filedialog #directory #path
ADD COMMENT
Topic
Name
8+4 =