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

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support