Kelie wrote:
> where am i supposed to be looking for the syntax for __init__ function
> for various dabo ui objects? i didn't see it on this page:
> http://paul.dabodev.com/doc/api/dabodoc/ and what i'm doing now is
> searching the source codes for the class definition in the dabo
> package.

You never want to define __init__() methods in your own dabo subclasses. 
Instead, you want to override afterInit(), afterInitAll(), and/or 
initProperties().

What were you wanting to pass to the __init__() constructors?

You can set properties to the constructor, as in:

MyTextBox = dabo.ui.dTextBox(self, Value="Hello", FontBold=True)

This idiom makes it unnecessary to subclass for simple common things.


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to