how do I pass values between classes?

Max Erickson maxerickson at
Mon Nov 6 16:35:22 CET 2006

"kath" <nitte.sudhir at> wrote:

> hi, Larry Bates .... thanks for the reply...
>> You might consider doing it the same way wx passes things around.
>> When you instantiate the subclass pass the parent class' instance
>> as first argument to __init__ method.
> Yes thats absolutely right..
>> That way the subclass can
>> easily pass values back to the parent by using that pointer.
> Could you please explain me this.. more clearly. I think it is much
> close to the solution.
> Thank you.
> regards, sudhir

Somewhere in the child class:


More information about the Python-list mailing list