From: pascale.noyret Date: Fri, 27 Apr 2018 15:12:46 +0000 (+0200) Subject: print intempestif X-Git-Tag: V8_5_0rc2a2~3^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=91f6fcf71a9ca9ee8cd67d091fc9cf4e68964a79;p=modules%2Feficas.git print intempestif --- diff --git a/InterfaceQT4/composimp.py b/InterfaceQT4/composimp.py index ed6bddd1..8fb3cf33 100644 --- a/InterfaceQT4/composimp.py +++ b/InterfaceQT4/composimp.py @@ -112,13 +112,13 @@ class Node(browser.JDCNode,typeNode.PopUpMenuNodeMinimal): num=self.item.object.definition.type[0].ntuple nomDeLaClasse = 'MonWidgetSimpTuple'+str(num) nomDuFichier = 'InterfaceQT4.monWidgetSimpTupleN' - #try : - if 1 : + try : + #if 1 : _temp = __import__(nomDuFichier, globals(), locals(), [nomDeLaClasse], 0) - print (_temp) + #print (_temp) MonWidgetSimpTuple = getattr(_temp,nomDeLaClasse) - #except : - # print ("Pas de Tuple de longueur : ", num) + except : + print ("Pas de Tuple de longueur : ", num) # print ("Prevenir la maintenance ") widget=MonWidgetSimpTuple(self,maDefinition,monNom,monObjet,parentQt,maCommande)