From cc9ccae257de59bb7bdaaa909a9b5811798995e9 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Tue, 11 Oct 2016 14:48:23 +0200 Subject: [PATCH] bug MT --- InterfaceQT4/typeNode.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2