build_uis

build_uis(ui_files_folder: Path, generated_ui_code_folder: Path, *, flatten_path: bool = True, uic_kwargs: UicKwargs | None = None, log_function: Callable[(Ellipsis, None)] = <function print>, recurse_folder: bool = True) list[Path][source]

Compile ui files by iterating over all ui files in a folder.

Parameters:
  • ui_files_folder (Path) – Base path containing the input ui files.

  • generated_ui_code_folder (Path) – Base path to save generated code from ui files to.

  • flatten_path (bool) – Whether or not to flatten the folder structure of the ui files (For the ‘python’generator this should be True in order for imports to resolve). Defaults to True

  • uic_kwargs (UicKwargs | None) – Keyword arguments passed to the uic executable. Defaults to None

  • log_function (Callable[..., None]) – Function used to print log messages. Defaults to rich.print

  • recurse_folder (bool) – Whether or not to recurse directories searching for files. Defaults to True

Returns:

List of generated files.

Return type:

list[Path]

See also

compile_ui_file