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:
i programmed using gedit text editor in ubuntu 10.04. name of file house.pycode: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()
run program in terminal importing it:
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)code:from house import *
but, according exercise, should this:
there i'm doing wrong?
hope can help. thank you.
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
Post a Comment