Window position

Ricardo nospam at here
Sun Feb 2 20:28:53 CET 2003


> How can I 'force' a tk window to open at a given (pixel) position & size
> on a screen?
>

To set size and position of window 'root':

  geom = "%dx%d%+d%+d" % (width, height, xoffset, yoffset)  # where all
coordinates are given in pixels.

  root.geometry(geom)







More information about the Python-list mailing list