From 5cd3305f1604b139980a0f4c6c53d334bef45c1e Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Thu, 26 May 2011 09:37:50 +0000 Subject: [PATCH] Remove Patrons menu for Aster (patch from Pascale) --- Editeur/listePatrons.py | 2 +- InterfaceQT4/qtEficas.py | 6 ++++++ UiQT4/myMain.ui | 6 ------ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Editeur/listePatrons.py b/Editeur/listePatrons.py index 872f290b..3de4e4f9 100644 --- a/Editeur/listePatrons.py +++ b/Editeur/listePatrons.py @@ -1,7 +1,7 @@ import os import re -sous_menus={"ASTER" : {0:{"3D":"3D.comm"},1:{"poutre":"pou.comm"},2:{"salome":"salome.comm"},3:{"divers":"comm"}}, +sous_menus={ "OPENTURNS_STUDY" : {0:{"Anne":"Std.comm"}}, "OPENTURNS_WRAPPER" : {0:{"Anne":"wrapper_exemple.comm"}}, } diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index 8df1afab..d7ea43f8 100644 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -206,6 +206,12 @@ class Appli(Ui_Eficas,QMainWindow): def initPatrons(self) : # Mise à jour du menu des fichiers recemment ouverts from Editeur import listePatrons + if not(self.code in listePatrons.sous_menus.keys()) : + return + self.menuPatrons = QMenu(self.menubar) + self.menuPatrons.setObjectName("menuPatrons") + self.menubar.addAction(self.menuPatrons.menuAction()) + self.menuPatrons.setTitle(QApplication.translate("Eficas", "Patrons", None, QApplication.UnicodeUTF8)) self.listePatrons = listePatrons.listePatrons(self.code) idx = 0 for nomSsMenu in self.listePatrons.liste.keys(): diff --git a/UiQT4/myMain.ui b/UiQT4/myMain.ui index cf9dbea5..b49ae8df 100644 --- a/UiQT4/myMain.ui +++ b/UiQT4/myMain.ui @@ -68,17 +68,11 @@ - - - Patrons - - - -- 2.39.2