self.initPatrons()
self.initRecents()
self.initAides()
- for intituleMenu in ("menuTraduction","menuOptions","menuMesh"):
+ for intituleMenu in ("menuTraduction","menuOptions","menuMesh","menuExecution"):
if hasattr(self,intituleMenu):
menu=getattr(self,intituleMenu)
menu.setAttribute(Qt.WA_DeleteOnClose)
menu.close()
delattr(self,intituleMenu)
+ for intituleAction in ("actionExecution",):
+ if hasattr(self,intituleAction):
+ action=getattr(self,intituleAction)
+ self.toolBar.removeAction(action)
if self.code in Appli.__dict__.keys():
listeTexte=apply(Appli.__dict__[self.code],(self,))
self.actionCode.setEnabled(True)
self.menuAide.addAction(self.actionCode)
+ def MAP(self):
+ self.menuExecution = self.menubar.addMenu(QApplication.translate("Eficas", "Execution", None, QApplication.UnicodeUTF8))
+ self.actionExecution = QAction(self)
+ icon6 = QIcon(self.RepIcon+"/compute.png")
+ self.actionExecution.setIcon(icon6)
+ self.actionExecution.setObjectName("actionExecution")
+ self.menuExecution.addAction(self.actionExecution)
+ if not(self.actionExecution in self.toolBar.actions()):
+ self.toolBar.addAction(self.actionExecution)
+ self.actionExecution.setText(QApplication.translate("Eficas", "Execution ", None, QApplication.UnicodeUTF8))
+ self.connect(self.actionExecution,SIGNAL("activated()"),self.run)
+
def ASTER(self) :
self.menuTraduction = self.menubar.addMenu("menuTraduction")