Home | History | Annotate | Download | only in cli

Lines Matching defs:caption

1082   def __init__(self, caption, content, enabled=True):
1088 caption: (str) caption of the menu item.
1094 self._caption = caption
1099 def caption(self):
1148 return [item.caption for item in self._items]
1150 def caption_to_item(self, caption):
1151 """Get a MenuItem from the caption.
1154 caption: (str) The caption to look up.
1157 (MenuItem) The first-match menu item with the caption, if any.
1160 LookupError: If a menu item with the caption does not exist.
1164 if caption not in captions:
1165 raise LookupError("There is no menu item with the caption \"%s\"" %
1166 caption)
1168 return self._items[captions.index(caption)]
1202 menu_line += item.caption
1203 item_name_begin = len(menu_line) - len(item.caption)