WIP: Un seul type de noeud (conditions ou transitions).
This commit is contained in:
parent
ae6981a624
commit
648072f59d
Binary file not shown.
|
@ -33,11 +33,11 @@ root = None
|
||||||
for i in range(0, len(model.testmodel.get_conditions().get_all())):
|
for i in range(0, len(model.testmodel.get_conditions().get_all())):
|
||||||
condition = model.testmodel.get_conditions().get_one(i)
|
condition = model.testmodel.get_conditions().get_one(i)
|
||||||
tmp = TreeNode(condition.get_self_id(),
|
tmp = TreeNode(condition.get_self_id(),
|
||||||
condition.get_parent_id(),
|
condition.get_parent_id(),
|
||||||
condition.get_weight(),
|
condition.get_weight(),
|
||||||
condition.get_site(),
|
condition.get_site(),
|
||||||
condition.get_coord("x"),
|
condition.get_coord("x"),
|
||||||
None, None)
|
None, None)
|
||||||
conditions_set.add(tmp)
|
conditions_set.add(tmp)
|
||||||
if tmp.parent_id == 0:
|
if tmp.parent_id == 0:
|
||||||
root = tmp
|
root = tmp
|
||||||
|
|
Loading…
Reference in New Issue