Skip to content

fontlab_glyport.plugins.menus.AppMenu · declarations 001

Back to fontlab_glyport.plugins.menus.AppMenu

__getitem__

__getitem__(key: Any) -> _HostMenu

__init__

__init__(host: PluginHost, *, wrap: Callable | None = None)

wrap (e.g. ExecutionContext.wrap) runs every item's callback.

close

close() -> None

Remove every item this proxy registered (newest first); re-raise the first failure.

collect

collect() -> Iterator[list[object]]

Collect the tokens registered meanwhile (a plugin's load, R027).

forget

forget(token: object) -> None

A plugin unload removed token itself; do not remove it again.

owned_by

owned_by(runner: Callable) -> Iterator[None]

Items registered meanwhile run their callbacks through runner (runner(call) returns the callable to invoke): the plugin's guard.