Finding Display Settings ??

Peter Hansen peter at
Wed Jul 18 07:33:45 EDT 2001

Peter Moscatt wrote:
> Which module/library would I import so that I can test for the current
> display settings ??

Since you didn't specify platform or essentially anything else, one
has to assume....

>>> import win32api
>>> print win32api.GetSystemMetrics(0)
>>> print win32api.GetSystemMetrics(1)

MS documentation should provide more detail on these and other
values returns by this system call.

For this, you have to have the win32all package installed.  Obviously
it works only on Windows... (you did mean Windows, didn't you?)

Peter Hansen, P.Eng.
peter at

More information about the Python-list mailing list