fontlabapp.menus
menus
Live menus and owned QAction registration.
Usage inside FontLab::
from fly.ap.menus import OwnedMenus
qt, fontlab = ..., ... # native modules from the host
owner = OwnedMenus(qt, fontlab, error_sink=lambda error, source: print(error))
token = owner.add_action("Edit", "My command", lambda: None)
owner.remove(token)
owner.close()
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 |
|---|---|---|---|
__dir__ |
function | () -> list[str] |
List only the names published by this facade. |
__getattr__ |
function | (name: str) -> Any |
Resolve one original public object only when it is requested. |