One book that helped me was: Learning Perl/Tk by Nancy Walsh.

There are 3 geometry managers in Tk: pack, place and grid. The most common is pack.

A "frame" is like a sub-area of a window. You can "pack" things into frames and frames into windows or other frames. To make 2 widgets appear above one another, make a frame, then "pack" the 2 widgets into that frame. A "Frame" is like a sub-set rectangle of a window but without visible borders.

A "gui builder" is not necessary with Tk. The easy way is to draw by hand what you are trying to create. Use pencil and paper! Draw a line around each widget. Then draw the frames. This mainly has to do with the vertical placement of groups of widgets along a "row".

There are other GUI's that I've heard about for Perl. But Tk works well.


In reply to Re: Specifying the Position of widget by Marshall
in thread Specifying the Position of widget by mld

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.