In my experience, using -pady, -padx doesn't work out that well.

In this case, the MenuButton idea is a great one as I think it is the same size as other buttons.

The more general advice is to use more sub-frames and the various anchor and centering options to get things to "line up". I draw "pencil on paper" diagrams before attempting to write a Tk GUI. This helps a lot! Draw diagrams showing the frames. Think sub-frame to get things to line up. Stay away from pixel oriented stuff.

Different users will have different frame resolutions and use say "large fonts" instead of "small fonts" - basically you are "doomed" if you deal with pixels. If you have a frame and pack in 2 widgets, that are are packed in left to right and then "centered" within that frame, then this work (in my experience).

GUI coding is one area where "mileage varies a lot!". But I think the basic advice of thinking "sub-frames" will take you a very long way down the road.


In reply to Re: Make Tk Optionmenu same height as Button by Marshall
in thread Make Tk Optionmenu same height as Button by chessgui

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.