Hey all,

I'm curious to know if there's a tkFileDialog that allows a person to browse for a folder, and in the pop-up "Browse for Folder" window, also have the option to "Make a new folder".

I need to have this functionality, but when I use askdirectory() there is only the options of "OK" and "CANCEL" and no "Make a new folder".

Ideas?

Thanks all,
Craig

Recommended Answers

All 3 Replies

Member Avatar for leegeorg07

have you got any code at the moment? if so then please post it

from Tkinter import *
from tkFileDialog import askdirectory

root = Tk()
root.title("Make a new folder test GUI")

sceneBrowseBut = Button(root,text="testing",command=(lambda a = 1: askdirectory()))
sceneBrowseBut.pack()

root.mainloop()

I want the pop-up Browse for Folder Window to include an option to "Make a new Folder" like many many other Browse for Folder Windows i've seen before.

Member Avatar for leegeorg07

thanks i would have to say that i think you will need to create your own class to perform the task, it will probably need os

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.