ou en position intermediaire.
Si pos vaut None, on le place a la position du catalogue.
"""
- #print ("************** appendChild ",self.item.getLabelText(), pos )
+ print ("************** appendChild ",self.item.getLabelText(), pos )
#import traceback
#traceback.print_stack()
elif type(name) == object : index = self.item.getIndexChild(name.nom)
else : index = self.item.getIndexChild(name)
- # si on essaye d inserer a la racine
- if (isinstance(self.treeParent,JDCTree) and index==0) :
- verifiePosition=self.verifiePosition(name,'first',aLaRacine=True)
- if not verifiePosition : return 0
-
+ print (self.children)
obj = self.item.addItem(name,index) # emet le signal 'add'
if obj is None : obj=0
+ print (self.children)
child=self.children[index]
#try :
# if len(obj) > 1 : self.buildChildren()
print ("-------------- fin append child", child, child.item)
- return True
+ if not obj : return None
+ return child.getIdUnique()
def delete(self):
#----------------