in reply to What is the best way to arrange widgets using TK?
1) You can use a Tk::LabEntry widget instead of separate Label and Entry widgets. The result is identical, but it's a bit shorter to code.
2) The -justify option controls justification when there is more than one line of text, which is not the case in your case. What you really need is the -anchor option and set it to 'w'.
3) To align all your text in the Label widgets, set the value of the -sticky option of grid() to 'ew' for each of your Label widgets.
HTH.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What is the best way to arrange widgets using TK?
by eserte (Deacon) on Aug 24, 2004 at 08:08 UTC |