[python-win32] win32gui.SetPixel error

Michael C mysecretrobotfactory at gmail.com
Sat Apr 29 17:14:33 EDT 2017


Oh I found out my code accidentally give negative values to the function. :(
Thanks all!

On Sat, Apr 29, 2017 at 1:10 PM, Michael C <mysecretrobotfactory at gmail.com>
wrote:

> fill the radar scan points with red.py", line 66, in <module>
>     win32gui.SetPixel(desktop_dc, x,y, rgb )
> pywintypes.error: (0, 'SetPixel', 'No error message is available')
>
>
>
>
> Hi all:
>
>   I am trying to paint a few pixels in the color of red. However, when I
> ran this
>
>     win32gui.SetPixel(desktop_dc, x,y, rgb )
>
>
> I get the error message above. How can I fix this? Thanks!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20170429/575d59e5/attachment.html>


More information about the python-win32 mailing list