Example #1
0
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 ''
Example #2
0
def get_menu_text(action_id):
    if LABELS.has_key(action_id):
        return LABELS[action_id][0]
    return ''
Example #3
0
def get_tooltip_text(action_id):
    if LABELS.has_key(action_id):
        return LABELS[action_id][0].replace('&', '')
    return ''
Example #4
0
 def isLastLabel(label):
     labelsLen = len(LABELS)
     labelIndex = LABELS.index(label)
     return labelIndex == labelsLen - 1
Example #5
0
def get_tooltip_text(action_id):
	if LABELS.has_key(action_id):
		return LABELS[action_id][0].replace('&', '')
	return ''
Example #6
0
def get_menu_text(action_id):
	if LABELS.has_key(action_id):
		return LABELS[action_id][0]
	return ''
Example #7
0
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 ''