turtle dump

Terry Reedy tjreedy at udel.edu
Thu Jul 16 19:06:55 EDT 2009


Peter Otten wrote:
> Terry Reedy wrote:

>> Help on method postscript:
>> postscript(self, *args, **kw) method of turtle.ScrolledCanvas instance
>>
>> is spectacularly useless.

This is from interactive help.

> http://docs.python.org/library/turtle.html#turtle.getcanvas

That method, following your lead, is how I got to .postscript.
The doc says

" Return the Canvas of this TurtleScreen. Useful for insiders who know 
what to do with a Tkinter Canvas."

> The module is a bit messy, but the accompanying documentation seems OK to 
> me. 

?? I am not an 'insider' ;-).

>> I did not see anything similar in the list of
>> about 100 attributes. 

Of Canvas, mostly methods. I can understand that no one who could write 
decent doc strings for the 100 methods has actually volunteered to do so.

>The image_type of the canvas is 'photo bitmap' but
>> I see no method to write that.
> 
> That's probably a bitmap that you can draw on the canvas. The Canvas is 
> actually that of Tkinter, and according to
> 
> http://www.tcl.tk/man/tcl8.5/TkCmd/canvas.htm#M59
> 
> it writes Encapsulated Postscript 3.0. Also:
> 
> $ file tmp.ps
> tmp.ps: PostScript document text conforming DSC level 3.0, type EPS
> 
> Try changing the file extension from .ps to .eps.

I will. Thank you.

tjr




More information about the Python-list mailing list