Ed Leafe wrote: > On Mar 2, 2007, at 1:11 PM, 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. > > One of the main design concepts in Dabo is you should rarely if ever > have to touch __init__(). There are hook methods that are empty by > default, so you can override them without fear of messing anything > up. They are: > > beforeInit() - fires before the __init__() code executes. Returning > False from this method will prevent the object from instantiating. > > initProperties() - allows you to specify properties to be set, just > as if you had passed them to the constructor. > > initEvents() - allows you to specify event bindings to be set. > > afterInit() - is called after the __init__() method has completed. > > afterInitAll() - is called after this object and all its child > objects have been created. > > BTW, this looks like a great question to add to the Wiki. Thanks!
In addition, we need a page that shows what the calling syntax is for the constructors, since I just realized it isn't there at all in the api docs. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
