Skip to content

fontlabapp.core.host

host

FontLab's menus, QActions, panels and glyph actions as a live Python tree.

Built on demand from the running host's English labels::

from fly.ap import host
host.menu.glyph.add_component()            # trigger a menu command
host.actions["Glyph > Add Component"]      # same Action, by menu path
host.actions["actionAdd_Component"]        # same Action, by Qt objectName
host.menu.view.snap                         # <Menu 'View > Snap' (15 items)>
host.panels.preview.show()                 # explicit visibility, never a toggle
host.glyph_actions.remove_overlap(glyph_names=["B"])

Nothing is triggered by attribute access, dir() or repr(). Names follow fontlabapp.core.menu_names; the generated static shim uses the same rules. The tree reads the menu bar live, so menus FontLab rebuilds (Script, Recent Fonts) stay current.

Classes

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
MENU_API attribute
PANELS attribute dict[str, tuple[str, int | None, str | None]]
SEPARATOR attribute
__getattr__ function (name: str) -> Any
live function () -> Host The tree for FontLab's running main window (created once per session).