turtle dump

Peter Otten __peter__ at web.de
Sat Jul 18 02:42:15 EDT 2009


Terry Reedy wrote:

> alex23 wrote:
> 
>> The help in iPython says the same, but also mentions that it's a
>> dynamically generated function, so it may not be picking up the
>> docstring that way. turtle.ScrolledCanvas.postscript is similarly
>> terse, but you can find more info in turtle.Canvas.postscript:
>> 
>>   Print the contents of the canvas to a postscript
>>   file. Valid options: colormap, colormode, file, fontmap,
>>   height, pageanchor, pageheight, pagewidth, pagex, pagey,
>>   rotate, witdh, x, y.
> 
> How, exactly, did you get that list?
> 
> tjr

[Python 3.1]
>>> import tkinter
>>> print(tkinter.Canvas.postscript.__doc__)
Print the contents of the canvas to a postscript
        file. Valid options: colormap, colormode, file, fontmap,
        height, pageanchor, pageheight, pagewidth, pagex, pagey,
        rotate, witdh, x, y.

Peter




More information about the Python-list mailing list