Paul McNett wrote:
> Other than that, you aren't going to get afterInit() to see an argument
> passed to __init__(), but you could code your class like:
>
> class MyTextBox(zdabo.ui.dTextBox):
> def __init__(self, myArg=None, *args, **kwargs):
> self.super()
> self.myArg = myArg
>
> and now you can reference the myArg attribute from whereever you like.
Sorry (and this is precisely why we try to keep people from overriding
__init__ in their code) that should be:
self.super(*args, **kwargs)
so that the Dabo superclass can process the rest of the arguments.
--
pkm ~ http://paulmcnett.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users