Skip to content

fontlab_glyport.ui.cocoa_menu.NSMenuItem

NSMenuItem

A menu command; the host maps it to a QAction and calls fire().

_runner (set by plugins.menus.AppMenu) wraps the callback, e.g. in ExecutionContext.wrap.

Source bases

Inherited member index

Source-proven inherited members; local declarations override these entries.

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
__init__ function (self, title=None, callback=None, target=None, keyboard=None, modifier=0) GlyphsApp's convenience constructor (<code>NSMenuItem(title, callback)</code>).
action function (self)
append function (self, item) -> None
fire function (self) -> None Perform the item's action (the host calls this when triggered).
hasSubmenu function (self) -> bool
image function (self) (shared captured text)
init function (self)
initWithTitle_action_keyEquivalent_ function (self, title, action, key)
insert function (self, index, item) -> None
isEnabled function (self) -> bool
isSeparatorItem function (self) -> bool
keyEquivalent function (self) -> str
keyEquivalentModifierMask function (self) -> int
representedObject function (self)
separatorItem function (cls)
setAction_ function (self, action) -> None
setAttributedTitle_ function (self, title) -> None
setEnabled_ function (self, flag) -> None
setImage_ function (self, image) -> None An <code>NSImage</code><code> (</code><code>ui.images</code><code>); the host shows its </code><code>icon()</code>.
setKeyEquivalentModifierMask_ function (self, mask) -> None
setKeyEquivalent_ function (self, key) -> None
setRepresentedObject_ function (self, value) -> None
setState_ function (self, state) -> None
setSubmenu_ function (self, menu) -> None
setTag_ function (self, tag) -> None (shared captured text)
setTarget_ function (self, target) -> None
setTitle_ function (self, title) -> None
state function (self) -> int (shared captured text)
submenu function (self)
tag function (self) -> int (shared captured text)
target function (self)
title function (self) -> str (shared captured text)