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?

45 of 46 people (98%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

Is there a way to set a Tkinter window (Tk or Toplevel) to be at a certain position on the screen?

Aug 27th, 2000 22:55
unknown unknown, Richard Chamberlain


You can use the geometry method:
root=Tk()
root.geometry('100x100+20+20')
This makes root 100 pixels high and wide and positions it at 20,20
pixels on the screen.