From 9eefb2f974d1a061060f4e964cceca29c056cafb Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Thu, 27 Apr 2017 15:01:55 +0200 Subject: [PATCH] correction 14619 --- InterfaceQT4/gereIcones.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InterfaceQT4/gereIcones.py b/InterfaceQT4/gereIcones.py index 5ab135b5..f8893280 100644 --- a/InterfaceQT4/gereIcones.py +++ b/InterfaceQT4/gereIcones.py @@ -28,6 +28,7 @@ except : pass import types,os,re,sys import traceback import six +import inspect from PyQt5.QtWidgets import QMessageBox, QFileDialog , QMenu, QPushButton, QTreeView ,QListView, QAbstractItemView from PyQt5.QtGui import QIcon @@ -392,7 +393,7 @@ class ContientIcones(object): return from Accas import SalomeEntry - if isinstance(kwType, type) and issubclass(kwType, SalomeEntry): + if inspect.isclass(kwType) and issubclass(kwType, SalomeEntry): selection, commentaire = self.appliEficas.selectEntryFromSalome(kwType,editor=self.editor) if commentaire !="" : -- 2.39.2