Faqts : Business : Programming : Shopping For You : Python : Tkinter

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

46 of 48 people (96%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

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

Mar 31st, 2009 09:43
Scott Mandarich, 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.











http://65.182.191.43/d/jeopardy.html