Finding Display Settings ??

Peter Moscatt pmoscatt at bigpond.net.au
Wed Jul 18 07:32:32 EDT 2001


My appoligies Pete,

No, I need to know under the Linux platform.

Pete



Peter Hansen wrote:

> 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?)
> 




More information about the Python-list mailing list