[Tutor] Config options on Tkinter Label Widget

Sheila King sheila@thinkspot.net
Wed, 04 Jul 2001 19:08:57 -0700


Very cool. Thanks, much. It is all clear to me now! ;)

Off I go, a tkintering...

--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/


On Wed, 4 Jul 2001 21:57:19 -0400, Rick Pasotto <rick@niof.net>  wrote
about Re: [Tutor] Config options on Tkinter Label Widget:

:
:Actually it *is* positioned to the left of the label. The problem is
:that the label is only as wide as the text. You need to add two things
:to the pack command: 'expand=1' to say you want the label to fill the
:available space, and 'fill=X' to say you want the label to expand
:horizontally.
:
:Directions.pack(expand=1,fill=X)
:
:To get a better idea of what is happening first color the label:
:
:Directions.config(anchor=W,bg='yellow')