]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Minor corrections
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Fri, 19 Jul 2019 12:59:34 +0000 (14:59 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Fri, 19 Jul 2019 12:59:34 +0000 (14:59 +0200)
bin/gui_Adao_QT_Eficas.py
src/daComposant/daCore/Interfaces.py
src/daSalome/adaoBuilder.py

index f527069d8e77a708d2ff0951a122745ef17cc49d..38d7ec7b6423990fdad94c34ee50691f05c5fe0d 100755 (executable)
@@ -25,6 +25,5 @@
    Launching the standalone EFICAS/ADAO interface
 """
 
-import adao
-from daCore.Interfaces import EficasGUI
-EficasGUI().gui()
+from adao import adaoBuilder
+adaoBuilder.Gui()
index dc4b45de3f75ac298be67568b289e6ffaa9df817..5a47dcfb71fa7d87b8031495e4f48a70beee84b7 100644 (file)
@@ -1007,7 +1007,7 @@ class EficasGUI(object):
         if not __path_ok:
             print("\nWarning:\n"+\
                 "  It seems you have some troubles with your installation. It may\n"+\
-                "  exists other errors than are not explained as above, like some\n"+\
+                "  exists other errors that are not explained as above, like some\n"+\
                 "  incomplete or obsolete Python 3 and module installation.\n"+\
                 "  \n"+\
                 "  Please correct the above error(s) before launching the\n"+\
@@ -1015,8 +1015,7 @@ class EficasGUI(object):
                   )
             sys.exit(2)
         else:
-            print("Launching the standalone EFICAS/ADAO interface...")
-        logging.debug("All the ADAO/EFICAS/QT5 paths have been found")
+            logging.debug("All the ADAO/EFICAS/QT5 paths have been found")
         sys.path.insert(0,__EFICAS_ROOT)
         sys.path.insert(0,os.path.join(adao.adao_py_dir,"daEficas"))
         if __addpath is not None and os.path.exists(os.path.abspath(__addpath)):
index b3e42f6346f7f3d892c2bac1cbc5d5365326dfc3..45c2c8fdd874b0b723571acc4eada7bf42d46a7d 100644 (file)
@@ -58,6 +58,14 @@ class New(_Aidsm):
     def __init__(self, name = ""):
         _Aidsm.__init__(self, name)
 
+class Gui(object):
+    """
+    Generic ADAO GUI builder
+    """
+    def __init__(self):
+        from daCore.Interfaces import EficasGUI
+        EficasGUI().gui()
+
 # ==============================================================================
 if __name__ == "__main__":
     print('\n AUTODIAGNOSTIC \n')