bootstack.ask_open_files#

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

Show a native open dialog allowing several files.

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

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

  • file_types (list[tuple[str, str]] | None) – Selectable file types as (label, pattern) pairs.

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

Returns:

The chosen file paths, or an empty list if canceled.

Return type:

list[str]