screen size/resolution in win32 in python

Larry Bates lbates at websafe.com
Mon Mar 19 18:18:44 EDT 2007


adri80386 wrote:
> Hi:
> 
> How I can get the current screen resolution settings (screen.width and
> screen.heigth in pixels) in python.
> 
> Thanks in advance
> 
> Adrian
> 

Please think about the fact that people sometimes now have 2 and even
3 monitors.  Don't do anything with this that would stretch your
application across all 2 (or 3) monitors.  I think screensize isn't
going to give you enough information to automatically size or
position a window.

-Larry



More information about the Python-list mailing list