[python-win32] Detecting when a system has multiple monitors (desktops)

reckoner reckoner at gmail.com
Wed Aug 25 02:21:21 CEST 2010


Tony:

All of this is handled in the dragonfly package:

http://code.google.com/p/dragonfly/

Note that you do not need speech recognition in order to use it. In 
particular, look at

    from dragonfly import Window, monitors


and the

window.py file in the distribution.

Good luck!



On 8/24/2010 4:33 PM, Tony Cappellini wrote:
> Does anyone know how to detect if a system has multiple monitors
> (desktops) through Python?
>
> I've written a program which allows the user to open multiple
> stand-alone windows.
> When I run this program I usually drag these windows to my secondary monitor.
>
> I was to save the screen coordinates of the window locations so they
> can be restored.
>
> First, the program must detect the multiple desktops and then
> understand if the screen coordinates of those
> windows are related to the primary or secondary desktop.
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32


More information about the python-win32 mailing list