Skip to main content

Thread: Can't see GASP graphics


hello,

i'm beginner in using python programming (actually, i'm beginner in programming.) self-studying python using http://openbookproject.net//thinkcspy/ , on topic using gasp creating simple graphics.

now, problem when try run gasp, can't see graphic. here code trying run:

code:
from gasp import *  begin_graphics()                # open graphics canvas  box((20, 20), 100, 100) box((55, 20), 30, 50) box((40, 80), 20, 20) box((80, 80), 20, 20) line((20, 120), (70, 160)) line((70, 160), (120, 120))  update_when('key_pressed') end_graphics()
i programmed using gedit text editor in ubuntu 10.04. name of file house.py

run program in terminal importing it:

code:
from house import *
now, gasp window opens can't see anything. when tried last time, seemed working fine. when tried now, can see blank gasp window (see screenshot-gasp.png)

but, according exercise, should this:



there i'm doing wrong?

hope can help. thank you.
attached images attached images

your code worked fine me. drew little house. not sure problem be.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Can't see GASP graphics


Ubuntu

Comments

Popular posts from this blog

Flash Builder 4 - Debugger fails to connect

"Error compiling the data model"

Thread: Ubuntu not working - mount /dev on /root/dev failed : no such file or directory