[Tutor] How to make the label left justified in a frame

Asrarahmed Kadri ajkadri at googlemail.com
Thu Nov 23 15:14:59 CET 2006


Hi Folks,

I am using grid manager inside a frame to arrange 4 label widgets, one
beneath the other.

What I want is that all teh labels should be placed in the left of the
frame...

There is no effect of using sticky = W.

Please help ; is it possible to do it with anchor..???

I have the follwng code:


frame3 = Frame(root,relief='sunken',bd=2)
frame3.pack(fill='x')
label_st_date = Label(frame3,text='Start Date:',font=font_object2)
label_st_date.grid(row=0)
label_ed_date = Label(frame3,text='End Date:')
label_ed_date.grid(row=1,sticky=W)

label_st_time = Label(frame3,text='Start Time:')
label_st_time.grid(row=3,sticky=W)
label_ed_time = Label(frame3,text='End Time:')
label_ed_time.grid(row=4)
Best Regards,
Asrarahmed Kadri

-- 
To HIM you shall return.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061123/b339a7df/attachment.htm 


More information about the Tutor mailing list