[Tkinter-discuss] OptionMenu text justification

Michael Lange klappnase at web.de
Tue Jun 1 19:05:10 CEST 2010

Hi Gary,

On Tue, 1 Jun 2010 08:15:31 -0700
Gary Scorby <Gary.Scorby at harlandfs.com> wrote:

> I guess I didn't explain this very well.
> I attempting to use Tkinter OptionMenu as a dropdown list.  After
> picking the desired text in the dropdown list the text is centered in
> the window.  I would like it to be left justified.  Nothing I have
> tried has been successful.  I am not talking about the label.  I am
> not talking about text entered by hand.  I am talking about the text
> in the dropdown list after a selection is made from that list.



does what you want? Here this puts all the widget's text to the left of
the menubutton. If you want to additionally left-justify multi-lined
text you need also justify='left' .

I hope this helps


More information about the Tkinter-discuss mailing list