From fafbce3738e0ee7e4a58072212a7b3d9510c4251 Mon Sep 17 00:00:00 2001 From: sbh Date: Mon, 17 Nov 2014 17:56:41 +0300 Subject: [PATCH] Icon added and debug output is removed --- src/PythonFeaturesPlugin/PythonFeaturesPlugin_Box.py | 6 +++--- src/PythonFeaturesPlugin/plugin-PythonFeatures.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PythonFeaturesPlugin/PythonFeaturesPlugin_Box.py b/src/PythonFeaturesPlugin/PythonFeaturesPlugin_Box.py index b08f98b41..2a4f5b819 100644 --- a/src/PythonFeaturesPlugin/PythonFeaturesPlugin_Box.py +++ b/src/PythonFeaturesPlugin/PythonFeaturesPlugin_Box.py @@ -25,8 +25,8 @@ class PythonFeaturesPlugin_Box(ModelAPI.ModelAPI_Feature): return PythonFeaturesPlugin_Box.ID() def initAttributes(self): - # C++ static methods (in example Type() of ModelAPI_AttributeDouble - # should be called like this: moduleName.ClassName_StaticMethod() + # C++ static methods (in example "type()" of the ModelAPI_AttributeDouble + # should be called like this: moduleName.ClassName_staticMethod() self.data().addAttribute(PythonFeaturesPlugin_Box.WIDTH_ID(), ModelAPI.ModelAPI_AttributeDouble_type()) self.data().addAttribute(PythonFeaturesPlugin_Box.LENGTH_ID(), ModelAPI.ModelAPI_AttributeDouble_type()) self.data().addAttribute(PythonFeaturesPlugin_Box.HEIGHT_ID(), ModelAPI.ModelAPI_AttributeDouble_type()) @@ -35,7 +35,7 @@ class PythonFeaturesPlugin_Box(ModelAPI.ModelAPI_Feature): aWidth = self.real(PythonFeaturesPlugin_Box.WIDTH_ID()).value() aLength = self.real(PythonFeaturesPlugin_Box.LENGTH_ID()).value() aHeight = self.real(PythonFeaturesPlugin_Box.HEIGHT_ID()).value() - print ("Box W:{0} L:{1} H:{2}".format(aWidth, aLength, aHeight)) + # print ("Box W:{0} L:{1} H:{2}".format(aWidth, aLength, aHeight)) # aResult = document().createBody(data()) # aResult.store(UserPackage.makeBox(aLength, aWidth, aHeight) # self.setResult(aResult) diff --git a/src/PythonFeaturesPlugin/plugin-PythonFeatures.xml b/src/PythonFeaturesPlugin/plugin-PythonFeatures.xml index 679cd22aa..2f7b97bc5 100644 --- a/src/PythonFeaturesPlugin/plugin-PythonFeatures.xml +++ b/src/PythonFeaturesPlugin/plugin-PythonFeatures.xml @@ -1,7 +1,7 @@ - + -- 2.39.2