bootstack.ask_directory#

bootstack.ask_directory(*, title='', initial_dir='', parent=None)#

Show a native folder chooser and return the chosen directory.

Parameters:
  • title (str) – Dialog window title.

  • initial_dir (str) – Directory to open in. Defaults to the last used location.

  • parent (Any) – Parent widget. Defaults to the active root window.

Returns:

The chosen directory path, or None if canceled.

Return type:

str | None