Query screen resolution?

AK Eric warpcat at sbcglobal.net
Fri Aug 28 14:13:06 EDT 2009


Thought this would be easy, maybe I'm missing something :)  Trying to
query the x,y resolution of my screen.  I've seen this available
through http://python.net/crew/mhammond/win32/ :

from win32api import GetSystemMetrics
print "width =", GetSystemMetrics (0)
print "height =",GetSystemMetrics (1)

But I was hoping for something built-in, and something non-OS
specific.  Is that available?  Would be nice to detect for multiple
monitors as well, but I'm probably asking too much :)

Thanks!



More information about the Python-list mailing list