]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
aide
authorPascale Noyret <pascale.noyret@edf.fr>
Tue, 4 Dec 2012 15:23:10 +0000 (15:23 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Tue, 4 Dec 2012 15:23:10 +0000 (15:23 +0000)
InterfaceQT4/qtEficas.py

index 388e5439bcbb5e18ee0393476b613af299f76cd5..15da41be46f1ac52cdcdc6c9c4ddba8fdf1f9be8 100644 (file)
@@ -116,18 +116,21 @@ class Appli(Ui_Eficas,QMainWindow):
           listeTexte=apply(Appli.__dict__[self.code],(self,))
 
     def initAides(self):
+        print "je passe la"
         repAide=os.path.dirname(os.path.abspath(__file__))
         self.docPath=repAide+"/../Aide"
         if hasattr(self,'CONFIGURATION') and hasattr(self.CONFIGURATION,'rep_aide') : self.docPath=self.CONFIGURATION.rep_aide
         fileName='eficas_'+str(self.code)+'.adp'
         self.fileDoc=os.path.join(self.docPath,fileName)
+        self.actionCode.setText("Aide spécifique "+str(self.code))
         if not os.path.isfile(self.fileDoc) : 
                self.fileDoc=""
                self.docPath=""
+               self.actionCode.setEnabled(False)
                return
 
+        self.actionCode.setEnabled(True)
         self.menuAide.addAction(self.actionCode)
-        self.actionCode.setText("Aide spécifique "+str(self.code))
 
 
     def ASTER(self) :
@@ -157,6 +160,8 @@ class Appli(Ui_Eficas,QMainWindow):
 
     def ChercheGrpMaille(self):
         Msg,listeGroup=self.ChercheGrpMailleInSalome()
+        #listeGroup=('a','b')
+        #Msg=None
         if Msg == None :
            self.viewmanager.handleAjoutGroup(listeGroup)
         else :