Tkinter pack method question

sik0fewl xxdigitalhellxx at hotmail.com
Fri Feb 14 11:15:05 EST 2003


Manuel Lanctot wrote:
> Jonas Geiregat wrote:
> 
> 
>>using Tkinter when using the pack method how can you set side to LEFT and
>>TOP ? like
>>instance.pack(side=TOP and side=LEFT)
>>how do you code this right
> 
> 
> If I remember correctly, pack() uses N, SW, E, etc. to "anchor" widgets. So 
> you could use to get TOP and LEFT:
> instance.pack(anchor=NW)

Actually, N,S,E,W are used for the grid method.

OP, try instance.pack (side=TOP&LEFT) or instance.pack(side=TOP, 
side=LEFT). I'm not sure how these will work out though...

--
Ryan





More information about the Python-list mailing list