rectangletangle rectangletangle - 1 year ago 154
Python Question

How do I get monitor resolution in Python?

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

Answer Source

On Windows:

from win32api import GetSystemMetrics

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

Based on this

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download