]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
+sieurs eficas dans salome
authorPascale Noyret <pascale.noyret@edf.fr>
Fri, 18 Jun 2010 15:13:44 +0000 (15:13 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Fri, 18 Jun 2010 15:13:44 +0000 (15:13 +0000)
InterfaceQT4/editor.py
InterfaceQT4/qtEficas.py

index 86a466deb6b3c62b08933cea05bf285781353ab2..c33b4b8710a46ae461005e81f878b84abb04593d 100644 (file)
@@ -82,13 +82,12 @@ class JDCEditor(QSplitter):
         try:
           self.CONFIGURATION.generator_module
           _module = __import__(self.CONFIGURATION.generator_module)
-          info = _module.entryPoint()
-          generator.plugins.addEntryPoint(info)
+         info = _module.entryPoint()
+         generator.plugins.addEntryPoint(info)
         except NameError:
-          pass
+         pass
         except:
-          #traceback.print_exc()
-          pass
+          traceback.print_exc()
 
         try:
           self.CONFIGURATION.convert_module
@@ -98,8 +97,7 @@ class JDCEditor(QSplitter):
         except NameError:
           pass
         except:
-          #traceback.print_exc()
-          pass
+          traceback.print_exc()
 
         self.sb = None
         if hasattr(self.appliEficas,"statusBar"):
@@ -117,7 +115,11 @@ class JDCEditor(QSplitter):
         #if not hasattr( readercata, 'reader' ) :
         #    readercata.reader = readercata.READERCATA( self, self.appliEficas )
         #self.readercata = readercata.reader
-        self.readercata  = readercata.READERCATA( self, self.appliEficas )
+        if not hasattr ( self.appliEficas, 'readercata'):
+           self.readercata  = readercata.READERCATA( self, self.appliEficas )
+           self.appliEficas.readercata=self.readercata
+        else :
+           self.readercata=self.appliEficas.readercata
         if self.readercata.fic_cata == None : return    #Sortie Salome
         self.Commandes_Ordre_Catalogue =self.readercata.Commandes_Ordre_Catalogue
         
@@ -681,15 +683,15 @@ class JDCEditor(QSplitter):
             except :
                pass
 
-            try : 
-               self.tubePy=self.generator.getTubePy()
-               fileTube = fn[:fn.rfind(".")] + '.py'
-               if self.tubePy != '' :
-                  f=open(fileTube,'w')
-                  f.write(self.tubePy)
-                  f.close()
-            except :
-               pass
+            #try : 
+            #   self.tubePy=self.generator.getTubePy()
+            #   fileTube = fn[:fn.rfind(".")] + '.py'
+            #   if self.tubePy != '' :
+            #      f=open(fileTube,'w')
+            #      f.write(self.tubePy)
+            #      f.close()
+            #except :
+            #   pass
 
             if self.salome : 
                self.appliEficas.addJdcInSalome( self.fichier)
index ab9fe57287f45d8b3c5862b52d16502293fbd57c..36a9289226e8cc1cfc0f4713aa60a796534619bb 100644 (file)
@@ -55,7 +55,7 @@ class Appli(Ui_Eficas,QMainWindow):
            reload(sys)
            sys.setdefaultencoding(prefsCode.encoding)
 
-        QMainWindow.__init__(self)
+        QMainWindow.__init__(self,parent)
         Ui_Eficas.__init__(self)
         self.setupUi(self)
         self.ajoutIcones()