Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: pyspark dataframe to parquet 
Python :: python align label left 
Python :: python constructor overloading 
Python :: joining two lists in python 
Python :: make the first letter of a string upper case 
Python :: pandas cumulative mean 
Python :: python time sleep 
Python :: find the highest id in model django 
Python :: find min and max from dataframe column 
Python :: pandas legend placement 
Python :: python make string one line 
Python :: index a dictionary python 
Python :: sort rows by values dataframe 
Python :: how to convert list into object and transform into tensors 
Python :: how to convert each string to a category or int in python dataframe 
Python :: python b string 
Python :: discord bot slash 
Python :: django-sslserver 
Python :: Matplotlib rotated xticklabels 
Python :: how to view all attributes and methods of an object python 
Python :: how to sort dict by value 
Python :: python list comprehension 
Python :: how return the data timestamp after some days in python 
Python :: find all regex matches python 
Python :: python import graphviz 
Python :: Find unique values in all columns in Pandas DataFrame 
Python :: how to add extra zeros after decimal in python 
Python :: remove space from string python 
Python :: python timer() 
Python :: upload to test pypi 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =