]> SALOME platform Git repositories - tools/eficas.git/blobdiff - InterfaceQT4/monWidgetCommentaire.py
Salome HOME
onItem=Deplie
[tools/eficas.git] / InterfaceQT4 / monWidgetCommentaire.py
index 8c21478c352baa3a9f95b64b244db62662daa11a..1c61c0602ca6f17b17072ea19dbc4e2669bdffb5 100644 (file)
@@ -40,9 +40,9 @@ class MonWidgetCommentaire(QWidget,Ui_WidgetCommentaire,FacultatifOuOptionnel):
       self.node.fenetre=self
       self.setupUi(self)
       self.editor=editor
-      self.setPoubelle()
+      self.setIconePoubelle()
       self.remplitTexte()
-      if self.editor.code in ['MAP','Adao','CARMELCND'] : self.bCatalogue.close()
+      if self.editor.code in ['MAP','CARMELCND'] : self.bCatalogue.close()
       else : self.connect(self.bCatalogue,SIGNAL("clicked()"), self.afficheCatalogue)
       self.connect(self.commentaireLE,SIGNAL("returnPressed()"),self.TexteCommentaireEntre)
        
@@ -60,9 +60,13 @@ class MonWidgetCommentaire(QWidget,Ui_WidgetCommentaire,FacultatifOuOptionnel):
          self.commentaireLE.setStyleSheet(QString.fromUtf8("background:rgb(244,244,244);\n" "border:0px;\n"))
          self.commentaireLE.setToolTip(tr("Valeur non modifiable"))
 
+  def donnePremier(self):
+      self.commentaireLE.setFocus(7)
+
 
   def TexteCommentaireEntre(self):
       texte=str(self.commentaireLE.text())
       self.editor.init_modif()
       self.node.item.set_valeur(texte)
+      self.node.update_node()