Tkinter Label 'justify' Problem

Dude steve077 at gmail.com
Wed Sep 17 13:18:31 EDT 2008


Hi All,
I am fairly new to Python programming.  I am working on a small
Tkinter project and I think I am missing something, maybe you can
help.  The two lines below is all I have related to the Label widget:

lblServer = Tkinter.Label(serverFrame, text='Server:', fg='black',
justify='left', relief='groove')

lblServer.place_configure(width=200, bordermode='inside')


No matter what I change the 'justify' to whether it's 'lef', 'right',
or 'center', it always seems to be in the center.

I am also writing the keys from the Label widget to a file because
this has me so baffled.  That is below.

Thank in advance for any help or direction you can give me.

Steve P

---------- lblServer keys -----------------
activebackground : SystemButtonFace
activeforeground : SystemButtonText
anchor : center
background : SystemButtonFace
bd : 2
bg : SystemButtonFace
bitmap :
borderwidth : 2
compound : none
cursor :
disabledforeground : SystemDisabledText
fg : black
font : {MS Sans Serif} 8
foreground : black
height : 0
highlightbackground : SystemButtonFace
highlightcolor : SystemWindowFrame
highlightthickness : 0
image :
justify : left
padx : 1
pady : 1
relief : groove
state : normal
takefocus : 0
text : NNTP Server:
textvariable :
underline : -1
width : 0
wraplength : 0
---------- lblServer keys END -------------



More information about the Python-list mailing list