Python Forum

Full Version: askdirectory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

i want to let the user select a path. i used the following

from tkinter.filedialog import askdirectory
path = askdirectory()
it works, BUT, a small window from the tk module opens as well, and it doesnt desappear when the user selected the path.

i tried to upload a screenshot, but doesnt seem to work.
but i hope you understand what i mean.

is there a way not to let that small window open?

İmage