[pygtk] Detecting number of monitors/screens?

Magnus Therning magnus at therning.org
Wed May 24 00:14:38 WST 2006


How do I find out how many heads X is using?

I'm on a dual-head system at work and would like my program to be able
to detect that and change its behaviour appropriately (I'm moving around
windows and would like them to stay on a single monitor). I have been
looking at the API offered by wnck, it offers all information about the
screen/display/window I need, except for this little detail :-(

/M

-- 
Magnus Therning                             (OpenPGP: 0xAB4DFBA4)
magnus at therning.org             Jabber: magnus.therning at gmail.com
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

This is a company that looks the world's roughest, toughest anti-trust
regulators in the eye and laughs. Compared to anti-trust people,
copyright lawmakers are pantywaists. You can take them with your arm
behind your back.
     -- Cory Doctorow, Microsoft Research DRM talk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060523/b8c9978e/attachment.pgp


More information about the pygtk mailing list