Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: GUI builders, good or bad?

by eserte (Deacon)
on Jun 21, 2004 at 10:44 UTC ( [id://368403]=note: print w/replies, xml ) Need Help??


in reply to GUI builders, good or bad?

Usually GUI builders produce bad source code, and even the produced GUI layout is not useable for most applications. Why? Most GUI builders only allow pixel exact layout, and not relative layout. In Tk terms, the layout code produced is using the "place" geometry manager, and not the "pack" or "grid" geometry managers. This works fine if all application users have the same font and screen settings, and if internationalization is not needed, but fails miserably if this is not the case.

Last time I looked at Prima the GUI builder was solving the problem by ignoring the user's font setting (as for example set by .Xdefaults on an X11 system), but forcing it's own fonts, resulting in ugly scaled fonts on my system.

Replies are listed 'Best First'.
Re^2: GUI builders, good or bad?
by Courage (Parson) on Jun 21, 2004 at 15:21 UTC
    VTCL allows 3 different geometry managers, namely grid, place and pack. Don't use placer if you don't want to.
    SpecTix/SpecTcl use grid only.

    I have very few experience about Java's GUI designer, but all of them that I had chance to try used packer and placer as geometry managers, namely I tried Sun's Forte and Borland's JBuilder.

    That said, "place" is not the only one that is actively used by GUI designers..

    I have no experience what produces Prima though.

    Courage, the Cowardly Dog

Re^2: GUI builders, good or bad?
by hardburn (Abbot) on Jun 21, 2004 at 13:04 UTC

    The Glade builder for Gnome uses grid layouts by default. You can place a pixel-by-pixel layout if you want, though. It has been a while since I've used it, and I don't remember anything about the quality of code.

    ----
    send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.

      This is why you use libglade and it's XML features. It produces the GUI as a description file that any program language can read, thus seperating the GUI definition and the code. As a result the code can work with multiple GUI definitions and you can change the GUI without changing the code. Python GTK has an excellent module for libglade. I don't know if Perl has one or not -- let me know if it does, I like Perl better. --MPD

        I don't know if Perl has one or not -- let me know if it does

        It does.

        ----
        send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://368403]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-18 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found