From: sbh Date: Mon, 17 Nov 2014 14:56:41 +0000 (+0300) Subject: Icon added and debug output is removed X-Git-Tag: V_0.7.0_rc1~57^2~3^2~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fafbce3738e0ee7e4a58072212a7b3d9510c4251;p=modules%2Fshaper.git Icon added and debug output is removed --- 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 @@ - +