Graphics

Glenn Hutchings zondo42 at googlemail.com
Fri Jul 11 17:20:41 EDT 2008


vanam <raghavendra.gv.vanam at gmail.com> writes:

> hi all
> i am new to python programming a beginner. I Came to know from the
> groups that "How to think like a computer scientist" is preferable for
> begineers. i just looking through that i came to one section where a
> sample program for generation of graphics is present.i tried to copy
> the same script to the interpreter and it is showing an error i want
> to know whether is there anything that has to be installed in addition
> to python 2.5
> below is the program
> from gasp import *
> begin_graphics()
> Circle((200, 200), 60)
> Line((100, 400), (580, 200))
> Box((400, 350), 120, 100)
> end_graphics()

You're probably getting an ImportError from the 'from gasp...' line.  You
need to grab and install the GASP package from https://launchpad.net/gasp.

Glenn



More information about the Python-list mailing list