Skip to content

fontlabapp.fontui.teaching_text.notebook.Notebook

Notebook

Keep named plain-text records. Never import or execute their contents.

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
__init__ function (self) -> None Initialize the owned controls and the local draft state.
decode function (self, text: str) -> None Parse into a detached notebook; malformed input preserves existing data.
encode function (self) -> str Return human-readable Unicode JSON; no executable serialization.
export function (self, title: str) -> str Export one committed snippet as Python text without executing it.
find function (self, query: str) -> list[str] Search titles and code without case sensitivity, in stable order.
navigate function (self, current: str | None, delta: int) -> str Wrap through sorted titles in either direction.
put function (self, title: str, body: str, old: str | None=None) -> None Add or rename a record; reject collisions before changing the mapping.
remove function (self, title: str) -> None Remove only an existing committed record.