- if nodeCourrant==self.node : nouveau=self.node.append_child(self.name,'first')
- else : nouveau=nodeCourrant.append_brother(self.name)
- print "je suis la"
- from InterfaceQT4 import compojdc
- if self.editor.afficheCommandesPliees==True and isinstance(nouveau.treeParent,compojdc.Node) :
- nouveau.plieToutEtReaffiche()
+ plier=self.editor.afficheCommandesPliees
+ if nodeCourrant==self.node : nouveau=self.node.append_child(self.name,'first',plier)
+ else : nouveau=nodeCourrant.append_brother(self.name,plier=plier)
+ nouveau.setDeplie()
+ #if self.editor.afficheApresInsert==True : nouveau.plieToutEtReaffiche()
+ if self.editor.afficheApresInsert == True :
+ #if self.editor.affichePlie==True: nouveau.plieToutEtReaffiche()
+ if self.editor.afficheCommandesPliees ==True: nouveau.plieToutEtReaffiche()
+ else : nouveau.deplieToutEtReaffiche()
+ nouveau.fenetre.donnePremier()
+ #nouveau.deplieToutEtReaffiche()
+ event.accept()
+