Screen placement based on screen resolution

Pat patrohlf at adelphia.net
Fri Apr 7 14:29:42 EDT 2006


I am trying to place a dialog in the center of the screen based on a users 
screen resolution.
I can get the width and height of the screen, but I can't seem to use the 
following:

root.geometry('WxH+X+Y')

It appears the values for X and Y need to be integers and not a variable 
like width/2-40
S





More information about the Python-list mailing list