Getting current screen resolution

Miki miki.tebeka at gmail.com
Mon Jun 9 15:54:59 EDT 2008


Hello,

> This is a "thing" that has been annoying me all morning: and I can't
> work out how to do it.
>
> I need a way to get the DPI or screen resolution of the monitor that a
> script is currently runnign on.
>
> I have a way in Windows but it doesnt port to Unix (which is important).
>
> Any ideas?
Maybe one of Tkinter.Tk winfo_* methods?

HTH,
--
Miki <miki.tebeka at gmail.com>
http://pythonwise.blogspot.com



More information about the Python-list mailing list