com inheritance

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zaatar05@walla.com

    #1

    com inheritance

    Hi

    I have a python class, which i want to wrap in a COM class

    Can the COM class inherit all the methods and attributes and thus be
    used by a COM client?
    example:


    class A:
    __init__(self, Param):
    self.Param = Param

    class COMA(A):
    _public_attribu tes_ = ["Param"]
    def __init__(self, Param):
    A.__init__(self , Param)

    thanks in advance

Working...