X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2Fsmesh_plugins.py;h=a65c7eb9b8740c2f2ba7e59bae8235b2c70bd60c;hb=6d32f944a0a115b6419184c50b57bf7c4eef5786;hp=8393e6a8b8117e7da6c4711964e569af217a4b36;hpb=bd7477efc255f965c479d88d1be1ee3dbf4aa760;p=modules%2Fsmesh.git diff --git a/src/Tools/smesh_plugins.py b/src/Tools/smesh_plugins.py index 8393e6a8b..a65c7eb9b 100644 --- a/src/Tools/smesh_plugins.py +++ b/src/Tools/smesh_plugins.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2011-2016 EDF R&D +# Copyright (C) 2011-2019 EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -21,6 +21,7 @@ # import salome_pluginsmanager import os +from qtsalome import QIcon try: from spadderPlugin import runSpadderPlugin @@ -33,9 +34,10 @@ except Exception as e: try: from meshcut_plugin import MeshCut + icon_file = os.path.join(os.getenv('SMESH_ROOT_DIR'),'share', 'salome', 'resources', 'smesh', 'mesh_plugins_meshcut.png') salome_pluginsmanager.AddFunction('MeshCut', 'Cut a tetrahedron mesh by a plane', - MeshCut) + MeshCut, icon=QIcon(icon_file)) except Exception as e: salome_pluginsmanager.logger.info('ERROR: MeshCut plug-in is unavailable: {}'.format(e))