Skip to content

fontlabapp.fontui.teaching.host · declarations 001

Back to fontlabapp.fontui.teaching.host

OPEN module-attribute

OPEN: list[Any]

bind_current_preview

bind_current_preview(shell: Any) -> Any

Capture the active font, glyph and exact layer; never retarget implicitly.

bind_preview

bind_preview(shell: Any, font: Any, name: str | None = None, layer: str | None = None) -> Any

Bind a read-only preview to the captured font and layer.

create

create(title: str, preview: str | None = None, parent: Any = None, package: Any = None) -> TeachingShell

Create an owned shell; callers construct all panels before showing it.

current_target

current_target() -> tuple[Any, str | None, str | None, tuple[Any, ...]]

Resolve the active glyph through its actual package, including its layer.

embed

embed(shell: Any, title: str, panel: Any) -> PanelOwner

Adopt one already constructed panel without opening another window.

finish

finish(shell: Any) -> Any

Show the completed shell, retaining it for the native menu lifetime.

refresh_current_preview

refresh_current_preview(shell: Any) -> Any

Explicit Refresh replaces a captured proof only after its owner closes.

require_current_preview

require_current_preview(shell: Any) -> None

Refuse an action whose current target no longer matches the visible proof.