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.
addObserver_forKeyPath_options_context_— defined byfontlab_glyport.ui.cocoa.NSObject.addObserver_forKeyPath_options_context_alloc— defined byfontlab_glyport.ui.cocoa.NSObject.allocdidChangeValueForKey_— defined byfontlab_glyport.ui.cocoa.NSObject.didChangeValueForKey_new— defined byfontlab_glyport.ui.cocoa.NSObject.newremoveObserver_forKeyPath_— defined byfontlab_glyport.ui.cocoa.NSObject.removeObserver_forKeyPath_respondsToSelector_— defined byfontlab_glyport.ui.cocoa.NSObject.respondsToSelector_setValue_forKeyPath_— defined byfontlab_glyport.ui.cocoa.NSObject.setValue_forKeyPath_setValue_forKey_— defined byfontlab_glyport.ui.cocoa.NSObject.setValue_forKey_valueForKeyPath_— defined byfontlab_glyport.ui.cocoa.NSObject.valueForKeyPath_valueForKey_— defined byfontlab_glyport.ui.cocoa.NSObject.valueForKey_willChangeValueForKey_— defined byfontlab_glyport.ui.cocoa.NSObject.willChangeValueForKey_
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) |