|
|
|
|
|
append(self,
*items)
Add one or more items or separators to this menu. |
|
|
|
|
click(self,
item,
highlight=False)
Mimick clicking a menu item. |
|
|
|
|
clickKey(self,
key,
highlight=False,
**modifiers)
Mimick clicking a menu item by the shortcut key, see
Item.__init__. |
|
|
|
|
find(self,
item)
Return the index of a menu item in this menu. |
|
|
|
|
__getitem__(self,
index)
Return the item at index or with title or several by slice. |
|
|
|
|
|
|
|
index(self,
item)
Return the index of an item in this menu. |
|
|
|
|
insert(self,
index,
*items)
Insert one or more items or separators into this menu. |
|
|
|
|
item(self,
title='',
action=None,
tag=None,
dflt=missing,
key='',
**modifiers)
Find an item by title, by action, by tag or by key. |
|
|
|
|
items(self,
separators=False)
Yield the items in this menu. |
|
|
|
|
pop(self,
index=-1)
Remove an item by index. |
|
|
|
|
popUp(self,
fraction=0.1)
Show this menu on the screen. |
|
|
|
|
remove(self,
*items)
Remove one or more items from this menu. |
|
|
|
|
separator(self,
index=missing)
Add or insert an item separator. |
|
|
|
Inherited from _Menu_Type2:
__contains__,
__len__,
removeAll
Inherited from bases._Type2:
__str__
Inherited from bases._Type0:
__repr__,
type2strepr
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__subclasshook__
|
|
|
highlightedItem
Get the menu's highlightedItem property
(Item or None).
|
|
|
isVisible
Get the menu's isVisible property (bool) or
None.
|
|
|
isEnabled
Get the menu's Enabled property (bool).
|
|
|
isHidden
Get the menu's Hidden property (bool).
|
|
|
isHighlighted
Get the menu's isHighlighted property
(bool).
|
|
|
nsMenuItem
Get the menu's intermediate (NSMenuItem) or
None if the menu hasn't been added or inserted into a MenuBar.
|
|
|
tag
Get the Menu
tag (int).
|
|
Inherited from _Menu_Type2:
action,
autoEnables,
isAttached,
isTornOff,
minWidth,
parent,
showsState,
size,
tags
Inherited from bases._Type2:
title
Inherited from bases._Type1:
NSdelegate,
app
Inherited from bases._Type0:
NS,
NSDelegate
Inherited from object:
__class__
|