From 23fd69eeab0f9da1201bab031d0805f7c5ddc324 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Mon, 5 Dec 2011 13:22:27 +0000 Subject: [PATCH] *** empty log message *** --- InterfaceQT4/qtEficas.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index 5bce823e..95828f16 100644 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -110,18 +110,29 @@ class Appli(Ui_Eficas,QMainWindow): self.menuMesh = self.menubar.addMenu("menuMesh") self.menuMesh.setObjectName("Mesh") self.actionChercheGrpMesh = QAction(self) - self.actionChercheGrpMesh.setText("Acquiert Groupe Maille") + self.actionChercheGrpMesh.setText("Acquiert SubMeshes") self.menuMesh.addAction(self.actionChercheGrpMesh) self.connect(self.actionChercheGrpMesh,SIGNAL("activated()"),self.ChercheGrpMesh) + self.actionChercheGrpMaille = QAction(self) + self.actionChercheGrpMaille.setText("Acquiert Groupe Maille") + self.menuMesh.addAction(self.actionChercheGrpMaille) + self.connect(self.actionChercheGrpMaille,SIGNAL("activated()"),self.ChercheGrpMaille) def ChercheGrpMesh(self): Msg,listeGroup=self.ChercheGrpMeshInSalome() if Msg == None : self.viewmanager.handleAjoutGroup(listeGroup) - #self.viewmanager.handleAjoutGroup(('Grp1','Grp2')) else : print "il faut gerer les erreurs" + def ChercheGrpMaille(self): + Msg,listeGroup=self.ChercheGrpMailleInSalome() + if Msg == None : + self.viewmanager.handleAjoutGroup(listeGroup) + else : + print "il faut gerer les erreurs" + + def MAP(self): self.menuExecution = self.menubar.addMenu(QApplication.translate("Eficas", "Execution", None, QApplication.UnicodeUTF8)) self.menuExecution.setObjectName("menuExecution") -- 2.39.2