pixel colour on screen

Tim Roberts timr at probo.com
Sun Jul 27 04:38:26 CEST 2008

chris <cjstuttle at hotmail.com> wrote:

>On Jun 30, 4:37 am, Tim Roberts <t... at probo.com> wrote:
>> cjstut... at hotmail.com wrote:
>> >Could anyone help me, I'm a python noob and need some help. im trying
>> >to find some code that will, given ascreenco-ordinate, will give me
>> >thecolourof thatpixelin RGB. i have found a lot about getting the
>> >pixelcolourfrom a picture file with a given co-ordinate, but is it
>> >possible to do it from the wholescreenoutput regardless what
>> >application the selectedpixelis in?
>> Which operating system?  If you are on Windows, and you have pywin32
>> loaded. you can use the Windows APIs GetDC and GetPixel.
>i have ubuntu hardy. does that help?

Then you will have to use a GUI library of some kind: wx, or Qt, or
tkinter.  The answer depends on which GUI library you decide to use.
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

More information about the Python-list mailing list