main logo
Subject: Re: [dabo-users] dabo equivalent of this simple wxPython code?
Author: Ed Leafe
Posted: 2007/01/31 14:10:00
 
View Entire Thread
New Search


On Jan 31, 2007, at 12:14 PM, wccppp wrote:

> Couple of questions:
>
> 1. Is the methond addControls automatically called like __init__ or
> afterInit? I only see it being defined, but not called.

Yes, it is automatically called. Normally you want to avoid
overridding __init__() if at all possible, so stuff like adding
controls is usually done in the afterInit() hook. But for the dialogs
we want to add the controls *before* adding the OK/Cancel buttons, so
we created the addControls() hook specifically for this purpose.

> Is there a list of
> methods (related to dabo ui) that's automatically called? Since
> they're not
> named __someMethod__, I'm not sure how to find out if it will or not.

No, but that's a good suggestion for docs that need to be written.
Right now I guess the only guidance is to look at the Class Designer
code, as it is written entirely in Dabo. There are many places where
dialogs are used, and looking at those may shed some light on a more
general approach.

> 2. The main form (with dabo logo) still shows up, although you had
> this line
> of code: app.showMainFormOnStart = False

That's odd - it didn't show up on either my Mac or my WinXP system.
What are you running?

BTW, you can run any of the programs and open the 'About' screen to
get a button that will copy all your version information so that you
can paste it into an email.

> 3. I understand the documentation of dabo is not complete yet, but
> where
> should I look for the them? I'm following this page atm.
> http://dabodev.com/wiki/FrameworkDocumentation

The wiki is the best source, but that is far from complete. I would
love nothing more than to be able to take a couple of months and do
nothing but write documentation, but there are so many issues that
pop up, as well as other annoying things like having to earn a
living, that make that impossible.

Would you be willing to add your experiences to the wiki once you
get a little more familiar with things?

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




 
©2007 Ed Leafe
<-- Prior Message New Search Next Message -->