Finding Display Settings ??

Peter Hansen peter at engcorp.com
Wed Jul 18 13:33:45 CEST 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)
1024
>>> print win32api.GetSystemMetrics(1)
768

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 engcorp.com



More information about the Python-list mailing list