def get_descr_text(action_id): if LABELS.has_key(action_id): if len(LABELS[action_id]) == 1: return get_tooltip_text(action_id) return LABELS[action_id][1] return ''
def get_menu_text(action_id): if LABELS.has_key(action_id): return LABELS[action_id][0] return ''
def get_tooltip_text(action_id): if LABELS.has_key(action_id): return LABELS[action_id][0].replace('&', '') return ''
def isLastLabel(label): labelsLen = len(LABELS) labelIndex = LABELS.index(label) return labelIndex == labelsLen - 1