Salome HOME
sauve du 9 mai
[tools/eficas.git] / InterfaceQT4 / browser.py
index acc78cedd15d661818f05fd5cf9e028867fe4328..ef81a9854bef6942f3763c33362cb8123fa47076 100644 (file)
@@ -338,14 +338,18 @@ class JDCNode(QTreeWidgetItem,GereRegles):
               return
            self.fenetre=self.getPanel()
          
+        #print "hhhhhhhhhh", self.editor.splitter.sizes()
         for indiceWidget in range(self.editor.widgetCentraleLayout.count()):
             widget=self.editor.widgetCentraleLayout.itemAt(indiceWidget)
             self.editor.widgetCentraleLayout.removeItem(widget)
         # ceinture et bretelle
         #print 'old fenetre = ',self.editor.fenetreCentraleAffichee
+        #print "iiiiiiiiiiiiiii", self.editor.splitter.sizes()
         if self.editor.fenetreCentraleAffichee != None : 
             #print "j enleve ", self.editor.fenetreCentraleAffichee, self.editor.fenetreCentraleAffichee.node.item.nom
             self.editor.widgetCentraleLayout.removeWidget(self.editor.fenetreCentraleAffichee)
+
+            self.editor.fenetreCentraleAffichee.setParent(None)
             self.editor.fenetreCentraleAffichee.close()
 
         self.editor.widgetCentraleLayout.addWidget(self.fenetre)
@@ -354,7 +358,7 @@ class JDCNode(QTreeWidgetItem,GereRegles):
         self.tree.node_selected= self
 
         if self.editor.first :
-           self.editor.splitter.setSizes((400,1400,400))
+           #self.editor.splitter.setSizes((400,1400,400))
            if not(isinstance(self.fenetre,MonChoixCommande)): self.editor.first=False
         self.tree.inhibeExpand=True
         self.tree.expandItem(self)
@@ -686,8 +690,6 @@ class JDCNode(QTreeWidgetItem,GereRegles):
 
     def update_node_texte(self):
         """ Met a jour les noms des SD et valeurs des mots-cles """
-        print "kkkkkkkkkkkk"
-        print self.item.GetText()
         value = self.item.GetText()
         self.setText(1, value)