Salome HOME
Modifications liees a MT
[tools/eficas.git] / InterfaceQT4 / ssIhm.py
index aa532c62f62f20d371ff5a4f97caa3c20d74416f..7f55db0bc58cf4b60661bea82d55691135bc354e 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (C) 2007-2013   EDF R&D
+# Copyright (C) 2007-2017   EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 #    permet de lancer  EFICAS en n affichant rien
+try :
+   from builtins import object
+except : pass
 
-class appliEficasSSIhm:
+class appliEficasSSIhm(object):
    def __init__ (self,code):
        self.VERSION_EFICAS="Sans Ihm"
        self.code=code
@@ -47,17 +50,10 @@ class appliEficasSSIhm:
        configuration=__import__(nameConf)
        self.CONFIGURATION = configuration.make_config(self,prefsCode.repIni)
         
-class QWParentSSIhm:
-   def __init__(self,code,appliEficas,version_code,ssCode=None):
+class QWParentSSIhm(object):
+   def __init__(self,code,version_code):
         self.ihm="QT"
         self.code=code
         self.version_code=version_code
-        self.ssCode=ssCode
-        if ssCode != None :
-           self.format_fichier= ssCode  #par defaut
-           #prefsCode.NAME_SCHEME=ssCode
-        else :
-           self.format_fichier="python" #par defaut
-        self.appliEficas=appliEficas
-        self.appliEficas.ssCode=ssCode
+        self.format_fichier="python" #par defaut