fontlabapp.fontui.teaching_text.scaffold
scaffold
Generate a small Python class which reads the current font.
Setup: Use FontLab 9 with Python 3.11, Fly and fontlabapp. Choose a class name and a title. Use Next to inspect valid Python source. Copy text from the preview into your own script; this tool writes no file. Why: Generate code as text and quote user titles as data. Benefit: Start a runnable font-reading script without editing a live font. All windows are modeless. Preview text can be selected and copied with Cmd+C. Each Preview captures fresh input; results are observations, not a live monitor. No font, selection, preferences, clipboard or history writer is called. The App Names panel owns signals, Escape and Close. UI imports are lazy.
Independent behaviour rewrite of the Qt/Riverbank classwizard dialog family. Original idea: Qt examples / Riverbank Computing Limited; Nokia Corporation. The author supplies these first-party samples under Apache-2.0. The Qt examples carry BSD headers and collection-level GPL metadata. No code, helper or asset from these examples is included. The two archived variants consolidate into this FontLab-specific workflow. Historical source: rescued/part2/ports/dialogs/pyqt-official/classwizard-035f3fbd2b81479a.py SHA256: 1d69f1113b8c0a1eb508ee108639dea5bd114fd384ae132c3dd767efa45909fb Historical source: rescued/part3/pyqt-official-ports/ports/dialogs/pyqt-official/classwizard-035f3fbd2b81479a.py SHA256: 93b55b89157b47b8676db5ce9e9a64641bf7d6290bc576f2c5af16079beef92d
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 |
|---|---|---|---|
build |
function | (parent: Any=None) -> Any |
Build the original controls as a hidden child for an owned lab tab. (shared captured text) |
main |
function | (*, embedded: bool=False, parent: Any=None) -> Any |
Open a retained, owned panel through Fly and the existing App lifecycle. |
scaffold |
function | (name: str, title: str) -> str |
Generate parseable Python. |