← Back to team overview

gasp-dev team mailing list archive

[Question #39599]: The GASP code examples in 'How to think like a Computer Scientist' do not work as advertised.

 

New question #39599 on GASP:
https://answers.launchpad.net/gasp-code/+question/39599

Specifically, In chapter 4 section 11 of "How to think like a Computer Scientist" there is an example to create some simple geometric figures, including the following code:

from gasp import *
begin_graphics()
Circle((200, 200), 60)
Line((100, 400), (580, 200))
Box((400, 350), 120, 100)
end_graphics()

If I run this code together, excluding the end_graphics() command a new window appears titled "GASP (Not Responding)" with a circle in it but no line of box.  If I enter the code like by line directly in to the shell, after the begin_graphics() command a window appears titled "GASP (Not responding)" and I can't draw the circle or line of anything.  This is occurring in Python 2.5 with Pygame installed.on Windows XP sp2.   Any help will be appreciated.

-- 
You received this question notification because you are a member of GASP
Development Team, which is an answer contact for GASP.