Want to create a folder and choose it with tkinter

Hello,

How To create a folder and get the path of the same using tkinter gui / windows explorer in python??

Thanks in advance

with regards
G.Gnanasenthil

Comments

  • Hi,

    Try to use askdirectory method
    def process_files(self): 
         savedir = tkFileDialog.askdirectory(title='Select folder to save results') 
         os.makedirs(savedir)
    
Sign In or Register to comment.