fontlabapp.fontui.teaching_text.slots
slots
Read live FontLab widget signals and slots for a scripting reference.
What: Select the main window, the focused widget captured when this panel opens, or a widget from the main window's direct children. List signals and slots with signatures, plus fixed PythonQt rules for safe callback wiring. How: Use direct native accessors. Disable Python GC while converting the one children list; do not traverse the widget tree or read arbitrary property values. Read only Qt metadata. If method enumeration is absent, report that limitation and keep the PythonQt rules visible. No discovered method is invoked. Why: Inspect the compiled interface before writing a FontLab callback. Usage: Focus the target widget before running this script. Choose an object, then Read Reference and copy the JSON. Run again to refresh the object choices. Destroyed targets are refused. No document is needed and no font is changed. Benefit: Keep exact signal/slot signatures beside practical PythonQt rules. A Qt declaration does not prove PythonQt can call every listed overload. Setup: FontLab 9, Python 3.11, Fly and App draft_signals/qt_properties. Independent rewrite of compiled-slot-exposure. Based on the author's own FontLab sample, Apache-2.0. No original source body is redistributed.
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 |
|---|---|---|---|
HELP |
attribute | ||
PYTHONQT_RULES |
attribute | ||
TITLE |
attribute | ||
build |
function | (parent: Any=None) -> Any |
Build the original controls as a hidden child for an owned lab tab. |
main |
function | () -> None |
Resolve the running FontLab window lazily; never create an application. (shared captured text) |
object_choices |
function | (gui: Any, owner: Any) -> list[tuple[str, Any]] |
Capture direct targets with GC paused during native-list conversion only. |
show |
function | (qt: Any, parent: Any, *, embedded: bool=False, target_owner: Any=None) -> Any |
Open an owned tool window; use App to fence and disconnect callbacks. |
slot_report |
function | (owner: Any, method_kinds: Any) -> str |
Read only declared signals/slots; give a usable fallback on older bindings. |