From 91f6fcf71a9ca9ee8cd67d091fc9cf4e68964a79 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Fri, 27 Apr 2018 17:12:46 +0200 Subject: [PATCH] print intempestif --- InterfaceQT4/composimp.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) -- 2.39.2