Graphics

V

vanam

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()
 
G

Glenn Hutchings

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

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top