Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def dbCreateLabel(cell,layer,origin,text,justification,orientation,font,height):
l1 = layermap[ (layer[0],layer[1]) ]
l1 = layout.layer(l1[0], l1[1])
t = db.DText.new(text,origin[0],origin[1])
t.halign = 1 #center
t.valign = 1 #center
top.shapes(l1).insert(t)
def dbCreateLabel(cell,layer,origin,text,justification=None,orientation=None,font=None,height=1):
l1 = maplayer(layer)
t = db.DText.new(text,origin[0],origin[1])
t.size = height
t.halign = 1 #center
t.valign = 1 #center
top.shapes(l1).insert(t)
flocals = locals()
print("createLabel: " + str([flocals[arg] for arg in inspect.getargspec(dbCreateLabel).args]))