in reply to Make Tk Optionmenu same height as Button
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Make Tk Optionmenu same height as Button
by chessgui (Scribe) on Jan 25, 2012 at 02:27 UTC |