Re: GUI decision for Agide

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Wichert Akkerman wrote:

> Previously Bram Moolenaar wrote:
> > For wxPython the best designer is Boa Constructor.  It's even better
> > than most designers, because it can read the actual code back in.  There
> > is no separate designer-file format.
> 
> Is that really better? I have always felt that code and presentation
> should be seperate things. Glade does that well by allowing you to store
> the GUI specs in a seperate glade file which you can read from your code
> using libglade.

When writing GUI code directly in the programming language you can
separate the presentation from the functionality in several ways.  A
simplistic solution is using a table that specifies what item goes where
and putting that table separately from the code that implements the
items.  There are many other ways, of course.

The problem of using a separate file for describing the presentation is
that this is yet another file format.  This quickly turns into another
language.  The result is that you get stuck with one tool that can
handle the language in a nice way, or you need to edit it directly,
which means you have to learn that language.

A separate description of the presentation works well for static things,
like a dialog, but not for dynamic things.  I have found that using Boa
Constructor with wxPython works very well for both.  I have used it for
Agide (although I manually changed a few things that caused Boa no
longer being able to edit the code in the designer).

-- 
If I tell you "you have a beautiful body", would you hold it against me?

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.