GDI in python>?

Peter Hansen peter at engcorp.com
Sat Feb 18 09:55:21 EST 2006


al pacino wrote:
> is it possible to address the  'screen pixels' using python , like
> analogous to older dos( functions that graphics.h provides') or win api
> calls for gdi.
> 
> what i want is to display clusters (in differetn colours) on screen
> using python.

Almost any (or just "any") GUI toolkit can do that.  Check out wxPython, 
Tkinter, PyQT, Pygame, etc.

For example, in the wxPython demo (two easy downloads to install and run 
on a Windows box), the Miscellaneous->DrawXXXList demo page shows how to 
draw sets of points, lines, rectangles, etc, directly to the display via 
a DeviceContext object.

-Peter




More information about the Python-list mailing list