Ignore:
Timestamp:
05/17/13 12:46:11 (11 months ago)
Author:
markotoplak
Branch:
default
Message:

Made menu tooltips "lighter" (like those on canvas).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/canvas/items/nodeitem.py

    r11442 r11525  
    11781178def NodeItem_toolTipHelper(node, links_in=[], links_out=[]): 
    11791179    """ 
    1180     A helper function for constructing a standard tooltop for the node 
     1180    A helper function for constructing a standard tooltip for the node 
    11811181    in on the canvas. 
    11821182 
     
    11981198    inputs_list_fmt = "Inputs:<ul>{inputs}</ul><hr/>" 
    11991199    outputs_list_fmt = "Outputs:<ul>{outputs}</ul>" 
    1200     inputs = outputs = ["None"] 
    12011200    if desc.inputs: 
    12021201        inputs = [channel_fmt.format(inp.name) for inp in desc.inputs] 
     1202        inputs = inputs_list_fmt.format(inputs="".join(inputs)) 
     1203    else: 
     1204        inputs = "No inputs<hr/>"  
    12031205 
    12041206    if desc.outputs: 
    12051207        outputs = [channel_fmt.format(out.name) for out in desc.outputs] 
    1206  
    1207     inputs = inputs_list_fmt.format(inputs="".join(inputs)) 
    1208     outputs = outputs_list_fmt.format(outputs="".join(outputs)) 
     1208        outputs = outputs_list_fmt.format(outputs="".join(outputs)) 
     1209    else: 
     1210        outputs = "No outputs"  
     1211 
    12091212    tooltip = title + inputs + outputs 
    12101213    style = "ul { margin-top: 1px; margin-bottom: 1px; }" 
Note: See TracChangeset for help on using the changeset viewer.