8 # Variable globale pour stocker le Workspace de Salome
13 # -----------------------------------------------------------------------------
21 print "lastWindowClosed()"
24 qt.QObject.connect(qt.qApp,qt.SIGNAL("lastWindowClosed()"),g)
26 # -----------------------------------------------------------------------------
31 sgPyQt=SalomePyQt.SalomePyQt()
32 print "EFicasGUI :: :::::::::::::::::::::::::::::::::::::::::::::::::::::"
34 # -----------------------------------------------------------------------------
36 def setWorkSpace(workSpace):
37 print "EficasGUI --- setWorkSpace"
41 print "WORKSPACE: ",WORKSPACE
45 # creation d'une message box
46 #qt.QMessageBox.information(d,"titre","message")
48 # recuperation du workspace
49 ws=sgPyQt.getMainFrame()
52 # -----------------------------------------------------------------------------
54 def OnGUIEvent(commandID) :
55 print "EficasGUI :: OnGUIEvent :::::::::::::::::::::::::::::::::commandID,WORKSPACE = ",commandID,WORKSPACE
56 if dict_command.has_key(commandID):
57 print "OnGUIEvent :::::::::: commande associée : ",commandID
58 dict_command[commandID](WORKSPACE)
60 print "Pas de commande associée a : ",commandID
62 # -----------------------------------------------------------------------------
66 print sgPyQt.getStudyId()
68 # -----------------------------------------------------------------------------
70 def activeStudyChanged(ID):
72 # ne marche pas car sg est supposé résider dans une etude
73 # studyId=sg.getActiveStudyId()
75 print "studyId: ",sg.getActiveStudyId()
76 print "On a changé d'étude active",studyId
77 print sgPyQt.getStudyId()
80 # -----------------------------------------------------------------------------
86 eficasSalome.runEficas(ws,"ASTER")
88 def runEficaspourHomard(ws):
90 eficasSalome.runEficas(ws,"HOMARD")
92 def runEficasHomard():
94 eficasSalome.runEficas(None,"HOMARD")
100 946:runEficaspourHomard,
102 4046:runEficaspourHomard,