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