Perl/Tk inspires many questions, many of them hard. This is a very basic one that you could find out on your own if you had access to a good reference or web page. This is something you learn very early with playing with pack, and i s mentioned in most every reference.

I hate to constantly Hawk "Mastering Perl Tk" by O'Reilly, but this is an excellent guide that will serve you well if you can pick it up. It gets my five out of five stars, and is really a great in-depth guide.

There should also be a wealth of web-based info out there, but I really can't comment on quality. I like my dead tree books. I would recommend we at PerlMonks but a Perl/Tk resources node on the Categorized Q&A page if there isn't such a node already. Sort of a "Read That Fine Manual", if you will.


In reply to Re: Perl/Tk - MainWindow positioning all widgets as centred by flyingmoose
in thread Perl/Tk - MainWindow positioning all widgets as centred by crabbdean

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.