From 34bd1d2e84862ec0b27002847bdf1dcda5388e6a Mon Sep 17 00:00:00 2001 From: ilct <> Date: Thu, 29 Mar 2012 14:07:01 +0000 Subject: [PATCH] IL: prise en compte de Carmel3D : ajout d un bouton --- src/EFICASGUI/EFICASGUI.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/EFICASGUI/EFICASGUI.py b/src/EFICASGUI/EFICASGUI.py index 2ac24057..755ec6aa 100644 --- a/src/EFICASGUI/EFICASGUI.py +++ b/src/EFICASGUI/EFICASGUI.py @@ -46,6 +46,7 @@ class GUIcontext: OT_STUDY_ID = 944 OT_WRAPPER_ID = 945 MULTICATALOG_ID = 946 + CARMEL3D_ID = 947 # constructor def __init__(self): @@ -80,6 +81,10 @@ class GUIcontext: "Eficas pour Openturns Wrapper", "Editer un jeu de commande Openturns Wrapper avec Eficas", "eficasotwrp.png") + self.addActionConditionally("Carmel3D/prefs.py", GUIcontext.CARMEL3D_ID, + "Eficas pour Carmel3D", + "Editer un jeu de commande Carmel3D avec Eficas", + "eficascarmel.png") def addActionConditionally(self, fileToTest, commandId, menuLabel, tipLabel, icon): global eficasRoot @@ -213,6 +218,11 @@ def runEficaspourMap(): eficasSalome.runEficas( "MAP" ) +def runEficaspourCarmel3D(): + print "runEficas Pour Carmel3D " + import eficasSalome + eficasSalome.runEficas( "CARMEL3D" ) + def runEficasFichier(version=None): """ @@ -253,6 +263,7 @@ dict_command={ GUIcontext.MAP_ID : runEficaspourMap, GUIcontext.OT_STUDY_ID : runEficaspourOpenturnsStudy, GUIcontext.OT_WRAPPER_ID : runEficaspourOpenturnsWrapper, + GUIcontext.CARMEL3D_ID : runEficaspourCarmel3D, GUIcontext.MULTICATALOG_ID : runEficas, 9041:runEficasFichier, -- 2.39.2