GDI in python>?

A

al pacino

hi,

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.

thanks.
 
C

Claudio Grondi

al said:
hi,

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.

thanks.
Sure. The problem will be to choose the right tool from the myriads of
available ones.

I have some experience with PyGame
http://www.pygame.org/news.html
which is built on top of SDL
http://www.libsdl.org/index.php
and find it easy to understand and use.

Don't be fooled by the 'Game' part - PyGame is as useful as SDL (a very
good library).

Claudio
 
D

Diez B. Roggisch

al said:
hi,

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.


Use one of the available GUI-Toolkits - Tkinter is included already. Or
pygame.

Diez
 
F

F. Petitjean

Le 17 Feb 2006 22:02:23 -0800, al pacino a écrit :
hi,

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.
Some possibilities (all on Win32 only):
ctypes by Thomas Heller
venster (uses ctypes) on sourceforge
win32all by Marc Hammond
 
P

Peter Hansen

al said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,285
Messages
2,571,416
Members
48,108
Latest member
AmeliaAmad

Latest Threads

Top