~ubuntu-branches/debian/sid/pyx/sid

« back to all changes in this revision

Viewing changes to examples/hello.py

  • Committer: Bazaar Package Importer
  • Author(s): Stuart Prescott
  • Date: 2011-05-20 00:13:52 UTC
  • mto: (9.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20110520001352-odcuqpdezuusbbw1
Tags: upstream-0.11.1
ImportĀ upstreamĀ versionĀ 0.11.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
c = canvas.canvas()
4
4
c.text(0, 0, "Hello, world!")
5
5
c.stroke(path.line(0, 0, 2, 0))
6
 
c.writeEPSfile("hello")
7
 
c.writePDFfile("hello")
 
6
c.writeEPSfile()
 
7
c.writePDFfile()