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