Guest User

saving turtle graphics without a monitor output - logging

a guest
Apr 6th, 2014
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. try:
  2.     import turtle
  3.  
  4.     myTurtle = turtle.Turtle()
  5.     myTurtle.circle(20)
  6.  
  7.     x = myTurtle.getscreen()
  8.     x.getcanvas().postscript(file = "output.eps")
  9. except:
  10.     import traceback
  11.     traceback.print_exc(file=file("exception.txt", "w"))
Advertisement
Add Comment
Please, Sign In to add comment