Commit dd6a6d6d by Eric Coissac

--no commit message

parent 5304836a
......@@ -23,7 +23,7 @@ class TreeLayout(dict):
def getAttribute(self,node,key,default=None):
return self[node].get(key,default)
def setNodesColor(self,color,predicat=True):
def setNodesColor(self,color,predicate=True):
@param color:
......@@ -56,7 +56,7 @@ class TreeLayout(dict):
self.setAttribute(node, 'shape', 'square')
def setRadius(self,radius,predicat=True):
def setRadius(self,radius,predicate=True):
for node in self:
if callable(predicat):
change = predicat(node)
......@@ -92,7 +92,7 @@ def constantColorGenerator(color):
return colorMaker
def notPredicatGenerator(predicat):
def notPredicatGenerator(predicate):
def notpred(x):
return not predicat(x)
return notpred
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment