Tkinter: centering windows on screen

Kilian Lorenz kilian.lorenz at dkfz-heidelberg.de
Sun Apr 9 17:19:56 EDT 2000


Kevin Cazabon wrote:
> 
> Is there a Python or Tkinter call to return the screen resolution?  I know I
> can probably get it through Win32, but I'd rather make it cross-platform...
> I'll do some digging.
> 

try these:

winfo_screenwidth, winfo_screenheight

http://w1.132.telia.com/~u13208596/tkintrobook/
x9548-window-related-information.htm

:)



More information about the Python-list mailing list