Graphics

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vanam

    Graphics

    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()
  • Glenn Hutchings

    #2
    Re: Graphics

    vanam <raghavendra.gv .vanam@gmail.co mwrites:
    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

    Comment

    Working...