Tkinter pack method question

Manuel Lanctot pacu at sympatico.ca
Fri Feb 14 02:41:49 CET 2003


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)

-- 
Manuel Lanctôt
PACU Communications
Kidnappe votre chien depuis 1913.




More information about the Python-list mailing list