Getting screen dims platform specific? Say it ain't so!

Lionel lionel.keene at gmail.com
Tue Feb 24 23:57:52 CET 2009


Hello people, I'm looking for a way to get the screen dimensions (in
pixels) using the standard Python library. The only thing I found so
far was the following:

from win32api import GetSystemMetrics
Width = GetSystemMetrics(0)
Height = GetSystemMetrics(1)

I get an error claiming "no module named win32api". It's platform
specific anyway, but I thought I would try.

Anyone got this?

-L



More information about the Python-list mailing list