Inherite @properties in Python

Hi people,

I have just facing an issue I found that @property inheritance in Python is so complicated and it is not worth to type it. As far as I understand we can inherite all members easily except properties.

I am creating a general explanation about class members but Geometry.width dows not work as poroperty, Python think it is an argument. :

import Rhino
import scriptcontext
import rhinoscriptsyntax as rs

# Python 2.7 does not support function overloading.
# Alternatively use this package:

class Geometry(object):
    # Constructor is not required
    # Geometry properties: Width,Height,Name,ID,Colour,Fill colour etc.
    def width(self): # Property - Width
        return self._width
    def width(self, value):
        self._width = value
    def heigh(self): # Property - Height
        return self._height
    def heigh(self, value):
        self._height = value
    def name(self,string): # Property - Name
        string = "Geometry"
    def heigh(self, value):
        self._height = value
    # Functions:
    def position(self): # Function - Position
        position = rs.GetPoint ( "Position of the geometry", None, None, False )
    def info(self): # Function - Info
        text = "This is a two dimensional object."
        print text
class Point(Geometry):
    def Draw(self,XYZ):
class Line(Geometry):
    def Draw(self, Point1, Point2):
class Oval(Geometry):
    def Draw(self):
        plane = rs.WorldXYPlane()
        rs.AddEllipse ( plane, Geometry.width, Geometry.height )
class Rectangle(Geometry):
   def Draw(self):
class Triangle(Geometry):
    def Draw(self):

If you google, you will find a lot of information and tips on this topic.

Python Buzz Forum - Note to self - Python properties are non-polymorphic.

python properties and inheritance - Stack Overflow

– Dale