how do I pass values between classes?
kath
nitte.sudhir at gmail.com
Mon Nov 6 02:00:43 EST 2006
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
More information about the Python-list
mailing list