Salome HOME
[PythonAPI] Add Entity class for sketch entity and make Line as an inheritant of...
[modules/shaper.git] / src / PythonAPI / model / sketcher / line.py
index e4111e0708ae4292b40124067bee9f94bd34e8aa..93f354ba063a45c76f4e7ba7ed71e747d725e5c6 100644 (file)
@@ -2,10 +2,12 @@ from GeomDataAPI import geomDataAPI_Point2D
 from model.roots import Interface
 from model.errors import WrongNumberOfArguments
 
-class Line(Interface):
+from .entity import Entity
+
+class Line(Entity):
     """Interface for editing of a sketch line feature."""
     def __init__(self, feature, *args):
-        Interface.__init__(self, feature)
+        Entity.__init__(self, feature)
         assert(self._feature.getKind() == "SketchLine")
 
         # Initialize attributes