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"}},
}
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():
<addaction name="actionParametres_Eficas" />
<addaction name="actionLecteur_Pdf" />
</widget>
- <widget class="QMenu" name="menuPatrons" >
- <property name="title" >
- <string>Patrons</string>
- </property>
- </widget>
<addaction name="menuFichier" />
<addaction name="menuEdition" />
<addaction name="menuJdC" />
<addaction name="menu_Aide" />
<addaction name="menuOptions" />
- <addaction name="menuPatrons" />
</widget>
<widget class="QStatusBar" name="statusbar" />
<widget class="QToolBar" name="toolBar" >