Skip to content

fontlabapp.studios.proof_studio.generators.Generator

Generator dataclass

A registered generator: picker title, tab, choices and pure make.

choices are (label, key) pairs (character-class source, surround string or proof text). scripts maps each key to the absorbed Scriptmix script title. uses_selection says whether Options.names matters. open(choice) repeats the absorbed script; open_current(choice, context), when set, opens what the studio shows instead (and may return a status). Neither set: the generator has no Glyph tab (Copy only). choice_label/part_label caption the choice and part pickers; seeded shows the Seed field; uses_font supplies Options.facts. fields are extra inputs. settings is the (organization, application) QSettings namespace of the absorbed tool; load(settings) returns the saved field values as an Outcome and save(settings, values, proof) runs after each user edit. actions add buttons. canvas names the absorbed panel's own stacked proof view in fontlabapp.proof.inspect.views (WaterfallView or MasterRows), drawn from Proof.canvas beside the TMetrics part preview.

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
actions attribute tuple[Action, ...]
canvas attribute str
choice_label attribute str
choices attribute tuple[tuple[str, str], ...]
fields attribute tuple[Field, ...]
key attribute str (shared captured text)
load attribute Callable[[Any], Outcome] | None
make attribute Callable[[str, Options], Proof]
open attribute Callable[[str], None] | None
open_current attribute Callable[[str, Context], str | None] | None
opens attribute (self) -> bool True when the generator can open a FontLab Glyph tab.
order attribute int
part_label attribute str
save attribute Callable[[Any, dict[str, Any], Proof], None] | None
scripts attribute dict[str, str]
seeded attribute bool
settings attribute tuple[str, str] | None
tab attribute str (shared captured text)
tab_order attribute int
title attribute str (shared captured text)
uses_font attribute bool
uses_selection attribute bool