rectangletangle rectangletangle - 3 months ago 17
Python Question

How do I get monitor resolution in Python?

What is the simplest way to get monitor resolution (preferably in a tuple)?

Answer

On Windows:

from win32api import GetSystemMetrics

print "Width =", GetSystemMetrics(0)
print "Height =", GetSystemMetrics(1)

Based on this

http://bytes.com/topic/python/answers/618587-screen-size-resolution-win32-python