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

geremy condra cto at openmigration.net
Wed Feb 25 00:59:31 CET 2009


For X systems you can use xwininfo, ie:

from commands import getstatusoutput

def get_screen_dims():
status, output = getstatusoutput("xwininfo -root")
if not status:


On Tue, Feb 24, 2009 at 6:53 PM, Luis Zarrabeitia <kyrie at uh.cu> wrote:

> On Tuesday 24 February 2009 05:57:52 pm Lionel wrote:
> > from win32api import GetSystemMetrics
>
> I'd guess that win32api is patform specific, as in "api for win32".
>
> --
> Luis Zarrabeitia (aka Kyrie)
> Fac. de Matemática y Computación, UH.
> http://profesores.matcom.uh.cu/~kyrie<http://profesores.matcom.uh.cu/%7Ekyrie>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
OpenMigration LLC- Open Source solutions for your business. Visit us at
http://OpenMigration.net.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090224/722bc9bb/attachment.html>


More information about the Python-list mailing list