From: pascale.noyret Date: Tue, 11 Oct 2016 12:48:23 +0000 (+0200) Subject: bug MT X-Git-Tag: V8_1_0~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cc9ccae257de59bb7bdaaa909a9b5811798995e9;p=tools%2Feficas.git bug MT --- diff --git a/InterfaceQT4/typeNode.py b/InterfaceQT4/typeNode.py index 036ae114..6b82a314 100644 --- a/InterfaceQT4/typeNode.py +++ b/InterfaceQT4/typeNode.py @@ -19,7 +19,7 @@ # from determine import monEnvQT5 if monEnvQT5: - from PyQt5.QtWidgets import QAction, QMenu + from PyQt5.QtWidgets import QAction, QMenu, QMessageBox else : from PyQt4.QtGui import * from PyQt4.QtCore import * @@ -139,6 +139,7 @@ class PopUpMenuNodeMinimal : def AppelleFonction(self,numero,nodeTraite=None): + #print "AppelleFonction", self,numero,nodeTraite if nodeTraite==None : nodeTraite=self.tree.currentItem() nomCmd=nodeTraite.item.get_nom() if hasattr(self.appliEficas, 'mesScripts'): @@ -160,7 +161,6 @@ class PopUpMenuNodeMinimal : if hasattr(nodeTraite,p): listeparam.append(getattr(nodeTraite,p)) if p=="self" : listeparam.append(self) - print listeparam try : res, commentaire= fonction(listeparam) @@ -170,7 +170,7 @@ class PopUpMenuNodeMinimal : tr(commentaire),) return except : - fonction(listeparam) + pass