old_code/varitem.py
def factory(varname, label, labclass, tooltip=None):
    """Construct VarItems using this function in order to make
    VarItems with the same varname identical.
    """
    if varname in VarItem.allItems:
        x = VarItem.allItems[varname]
        # Only used during initialization
        if x.label != label or x.labclass != labclass or x.tooltip != tooltip:
            print("factory: collision:", varname, label, labclass, tooltip, \
                x.label, x.labclass, x.tooltip)
            sys.exit(1)
    else:
        x = VarItem(varname, label, labclass, tooltip)
        VarItem.allItems[varname] = x
    return x
Construct VarItems using this function in order to make
    VarItems with the same varname identical.
    
Construct VarItems using this function in order to make
VarItems with the same varname identical.
Construct VarItems using this function in order to make VarItems with the same varname identical .
def factory(varname, label, labclass, tooltip=None):
    if varname in VarItem.allItems:
        x = VarItem.allItems[varname]
        if x.label != label or x.labclass != labclass or x.tooltip != tooltip:
            print("factory: collision:", varname, label, labclass, tooltip, \
                x.label, x.labclass, x.tooltip)
            sys.exit(1)
    else:
        x = VarItem(varname, label, labclass, tooltip)
        VarItem.allItems[varname] = x
    return x
def factory ( varname , label , labclass , tooltip = None ) : if varname in VarItem . allItems : x = VarItem . allItems [ varname ] if x . label != label or x . labclass != labclass or x . tooltip != tooltip : print ( "factory: collision:" , varname , label , labclass , tooltip , x . label , x . labclass , x . tooltip ) sys . exit ( 1 ) else : x = VarItem ( varname , label , labclass , tooltip ) VarItem . allItems [ varname ] = x return x
Construct VarItems using this function in order to make
VarItems with the same varname identical.
Construct VarItems using this function in order to make VarItems with the same varname identical .
"""Construct VarItems using this function in order to make
    VarItems with the same varname identical.
    """ # Only used during initialization
varname
label
labclass
tooltip