Skip to content

fontlab_instamix.gui · declarations 001

Back to fontlab_instamix.gui

FILE_PATTERN module-attribute

FILE_PATTERN

confirm

confirm(text: str, title: str = 'Instamix') -> bool

install_selected

install_selected(paths: list[str | Path] | None = None, *, data: Path | None = None, folder: bool = False) -> list[dict]

Install selected extensions; report each failure and continue other selections.

Explicit paths bypass the picker. Returned records contain successful installs; failures print through message, including the path and original error.

message

message(text: str, title: str = 'Instamix', *, error: bool = False) -> None

Print a status line; inside FontLab stdout goes to the Output panel.

Never opens a modal dialog: install and uninstall reports must not interrupt the user's work.

pick_file

pick_file(title: str = 'Choose an extension', pattern: str = FILE_PATTERN) -> str

Return PythonQt's QString path, or an empty string on cancellation.

pick_files

pick_files(title: str = 'Choose extensions', pattern: str = FILE_PATTERN) -> list[str]

Choose archives/manifests; console fallback takes one literal path per line.

pick_folder

pick_folder(title: str = 'Choose an extension folder') -> str

Choose a .fontlabext directory without mixing folders into a file dialog.