Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

•Re: Re: Creating Tk Applications Graphically

by merlyn (Sage)
on Mar 13, 2004 at 16:06 UTC ( [id://336379]=note: print w/replies, xml ) Need Help??


in reply to Re: Creating Tk Applications Graphically
in thread Creating Tk Applications Graphically

But applications designed like that usually feel to me the same way web pages feel that are done by "visual" layout programs. That is, when I move the lower-right window size box, it should get bigger or smaller, darn it!

If you lay out "logically" rather than "visually", you don't have any absolute pixels. Everything is just "left" or "right" or "above" other things, and when the main window is resized, everything is still like that. Pixel based layout tools are wrong for that.

Now, maybe you meant that you do a Photoshop layout, but only to generally figure out where things go, and then you reduce it to simple ->pack calls rather than absolute ->place calls or fixed sizes for all your widgets. But I'm not sure, so I'm raising the issue here.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: Re: Creating Tk Applications Graphically
by Popcorn Dave (Abbot) on Mar 14, 2004 at 07:34 UTC
    Actually for what I did, I wanted the absolute pixel placement. That worked out fine for me in that instance. However that's not to say I'd use that every time. I'd have to look at the app I was building.

    I used that technique with the first Tk app I ever did, and the ability to place things at x-y coordinates was easier for me to deal with for what I did as I had some graphics in my main window. I used Photoshop since I was more comfortable with it than Paint Shop Pro.

    It worked for me, it might not for others. I only offered it as a suggestion as the o.p. seemed to be looking for an easy solution for laying out widgets in Tk.

    There is no emoticon for what I'm feeling now.

Pixel Perfect UI Design
by Anonymous Monk on Mar 13, 2004 at 17:57 UTC
    IMHO some of the best web site/UI designs are "pixel perfect" - don't forget stuff like having fixed size gifs (e.g. backgrounds) marry up to tables, etc.
      It's not a good design if it doesn't work on my cell phone, or a blind person's speaking browser, or is visible to the world's most important browsers (googlebot and to a lesser extent, scooter).

      The web is not paper. Paper designers can't seem to get over this.

      -- Randal L. Schwartz, Perl hacker
      Be sure to read my standard disclaimer if this is a reply.

        It's not a good design if it doesn't work on my cell phone

        A desktop-based web browser is one kind of usage scenario. A PDA/phone-based web browser is a different one in most cases.

        This has to do with layout, but also with the amount of text to display, user needs, motives and expectations, how to navigate etc. Most likely, the usage scenario is too different to allow the same design to work in an optimal way in both scenarios.

        So saying "it's not good" if one design cannot accomodate both scenarios is a tad simplistic IMHO. The problem is bigger than whether a layout is/should be pixel perfect or not.


        /J

        And to add: fonts have not the same extents on every system (even if it's the same font family), and internationalization may hit (label texts occupy more space in some languages). Issues which I often have to face from badly written Java, Gtk or Qt GUI applications.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-23 23:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found