faqts : Computers : Programming : Languages : Python : Tkinter

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 12 people (75%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

Is there a way to position child widgets on a TopLevel widget using absolute coordinates instead of using pack, place or grid?

Jul 17th, 2000 15:26
unknown unknown, richard_chamberlain


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!