Skip to content

fontlabapp.studios.proof_studio.tabs.GeneratorTab · declarations 001

Back to fontlabapp.studios.proof_studio.tabs.GeneratorTab

__init__

__init__(studio: Studio, title: str, *, clipboard: Callable[[str], Any] = _clipboard, settings: Callable[[str, str], Any] | None = None, generators: tuple[Generator, ...] | None = None, parent: Any = None) -> None

choice_key

choice_key() -> str | None

close

close() -> None

The window is closing: cancel a running Master text comparison Open.

context

context() -> Context | None

copy

copy() -> str | None

edited

edited() -> Proof | None

A field edit: regenerate, then save to the generator's settings when it saves on edit.

generator

generator() -> Generator | None

open

open() -> bool

regenerate

regenerate() -> Proof | None

Make the proof for the current generator, choice, seed and fields, then preview part 1.

run

run(generator: Generator, action: Any) -> Outcome | None

Run a generator button, apply what it returns and regenerate.

seed_value

seed_value() -> int | None

The Seed field as an int; None when empty. ValueError when not a whole number.

show_part

show_part() -> str

Preview the chosen part and show its exact text.

values

values(generator: Generator | None = None) -> dict[str, Any]

The generator's field values (by key) plus values its load/actions keep.