From d0cb3fa57c837e7a588e690f527671770e440c5b Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Fri, 3 Dec 2010 16:54:01 +0000 Subject: [PATCH] ajout de menu pour MAP --- InterfaceQT4/qtEficas.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index 7d732a6b..11402174 100644 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -96,15 +96,17 @@ class Appli(Ui_Eficas,QMainWindow): self.connect(self.actionTraduitV8V9,SIGNAL("activated()"),self.traductionV8V9) - def Map(self): - self.MAP() def MAP(self): + self.menuExecution = self.menubar.addMenu(QApplication.translate("Eficas", "Execution", None, QApplication.UnicodeUTF8)) + self.menuExecution.setObjectName("menuExecution") + self.menuJdC.setTitle(QApplication.translate("Eficas", "Rapports", None, QApplication.UnicodeUTF8)) + self.actionExecution = QAction(self) icon6 = QIcon(self.RepIcon+"/compute.png") self.actionExecution.setIcon(icon6) self.actionExecution.setObjectName("actionExecution") - self.menuJdC.addAction(self.actionExecution) + self.menuExecution.addAction(self.actionExecution) self.toolBar.addAction(self.actionExecution) self.actionExecution.setText(QApplication.translate("Eficas", "Execution Python", None, QApplication.UnicodeUTF8)) self.connect(self.actionExecution,SIGNAL("activated()"),self.run) @@ -125,7 +127,7 @@ class Appli(Ui_Eficas,QMainWindow): icon7 = QIcon(self.RepIcon+"/application.gif") self.actionExecutionYACS.setIcon(icon7) self.actionExecutionYACS.setObjectName("actionExecutionYACS") - self.menuJdC.addAction(self.actionExecutionYACS) + self.menuExecution.addAction(self.actionExecutionYACS) self.toolBar.addAction(self.actionExecutionYACS) self.actionExecutionYACS.setText(QApplication.translate("Eficas", "Execution YACS", None, QApplication.UnicodeUTF8)) self.connect(self.actionExecutionYACS,SIGNAL("activated()"),self.runYACS) -- 2.39.2