Skip to content

mustexist=False does not work for tkinter.filedialog.askdirectory #141932

@william-reames-tfs

Description

@william-reames-tfs

Bug report

Bug description:

Code to reproduce

import tkinter as tk
from tkinter.filedialog import askdirectory

root = tk.Tk()
root.withdraw()
print(askdirectory(mustexist=False))

when trying to specify a folder that does not exist, an error message appears instead of allowing the selection.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions