Tkinter and absolute positioning

richard_chamberlain at my-deja.com richard_chamberlain at my-deja.com
Mon Jul 17 04:45:45 EDT 2000


Hi Ruud,

You can do absolute positioning with place:

from Tkinter import *
root=Tk()
Label(root,text="He's not the messiah,").place(x=5,y=5)
Label(root,text="he's a very naughty boy.").place(x=35,y=70)
root.mainloop()

Not highly recommended though!

Richard



In article <8kudt2$92e$1 at nnrp1.deja.com>,
  Ruud Cox <ruud.cox at philips.com> wrote:
>
>
> Is there a way to position child widgets on a TopLevel
> widget using absolute coordinates instead of using pack,
> place or grid?
>
> Ruud Cox
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list