Tkinter: Position of windows

Gary Herron gherron at islandtraining.com
Mon Apr 28 12:53:30 EDT 2003


On Monday 28 April 2003 09:43 am, Federico wrote:
> How can I control where a window will appear? I'd like to set the initial
> position of a window...
> Thanks

On the top level window (say root) do things like this:

  set size:      root.geometry('400x300')
  set position:  root.geometry('+100+100')
  set both:      root.geometry('400x300+100+100')

Gary Herron







More information about the Python-list mailing list