addshape(name, shape=None) |
Adds a turtle shape to TurtleScreen's shapelist. [extrait de addshape.__doc__] |
back(distance) |
Move the turtle backward by distance. [extrait de back.__doc__] |
backward(distance) |
Move the turtle backward by distance. [extrait de backward.__doc__] |
begin_fill() |
Called just before drawing a shape to be filled. [extrait de begin_fill.__doc__] |
begin_poly() |
Start recording the vertices of a polygon. [extrait de begin_poly.__doc__] |
bgcolor(*args) |
Set or return backgroundcolor of the TurtleScreen. [extrait de bgcolor.__doc__] |
bgpic(picname=None) |
Set background image or return name of current backgroundimage. [extrait de bgpic.__doc__] |
bk(distance) |
Move the turtle backward by distance. [extrait de bk.__doc__] |
bye() |
Shut the turtlegraphics window. [extrait de bye.__doc__] |
circle(radius, extent=None, steps=None) |
Draw a circle with given radius. [extrait de circle.__doc__] |
clear() |
Delete the turtle's drawings from the screen. Do not move [extrait de clear.__doc__] |
clearscreen() |
Delete all drawings and all turtles from the TurtleScreen. [extrait de clearscreen.__doc__] |
clearstamp(stampid) |
Delete stamp with given stampid [extrait de clearstamp.__doc__] |
clearstamps(n=None) |
Delete all or first/last n of turtle's stamps. [extrait de clearstamps.__doc__] |
clone() |
Create and return a clone of the [extrait de clone.__doc__] |
color(*args) |
Return or set the pencolor and fillcolor. [extrait de color.__doc__] |
colormode(cmode=None) |
Return the colormode or set it to 1.0 or 255. [extrait de colormode.__doc__] |
config_dict(filename) |
Convert content of config-file into dictionary. [extrait de config_dict.__doc__] |
deepcopy(x, memo=None, _nil=[]) |
Deep copy operation on arbitrary Python objects. [extrait de deepcopy.__doc__] |
degrees(fullcircle=360.0) |
Set angle measurement units to degrees. [extrait de degrees.__doc__] |
delay(delay=None) |
Return or set the drawing delay in milliseconds. [extrait de delay.__doc__] |
distance(x, y=None) |
Return the distance from the turtle to (x,y) in turtle step units. [extrait de distance.__doc__] |
dot(size=None, *color) |
Draw a dot with diameter size, using color. [extrait de dot.__doc__] |
down() |
Pull the pen down -- drawing when moving. [extrait de down.__doc__] |
end_fill() |
Fill the shape drawn after the call begin_fill(). [extrait de end_fill.__doc__] |
end_poly() |
Stop recording the vertices of a polygon. [extrait de end_poly.__doc__] |
exitonclick() |
Go into mainloop until the mouse is clicked. [extrait de exitonclick.__doc__] |
fd(distance) |
Move the turtle forward by the specified distance. [extrait de fd.__doc__] |
fillcolor(*args) |
Return or set the fillcolor. [extrait de fillcolor.__doc__] |
filling() |
Return fillstate (True if filling, False else). [extrait de filling.__doc__] |
forward(distance) |
Move the turtle forward by the specified distance. [extrait de forward.__doc__] |
get_poly() |
Return the lastly recorded polygon. [extrait de get_poly.__doc__] |
get_shapepoly() |
Return the current shape polygon as tuple of coordinate pairs. [extrait de get_shapepoly.__doc__] |
getcanvas() |
Return the Canvas of this TurtleScreen. [extrait de getcanvas.__doc__] |
getmethparlist(ob) |
Get strings describing the arguments for the given object [extrait de getmethparlist.__doc__] |
getpen() |
Return the Turtleobject itself. [extrait de getpen.__doc__] |
getscreen() |
Return the TurtleScreen object, the turtle is drawing on. [extrait de getscreen.__doc__] |
getshapes() |
Return a list of names of all currently available turtle shapes. [extrait de getshapes.__doc__] |
getturtle() |
Return the Turtleobject itself. [extrait de getturtle.__doc__] |
goto(x, y=None) |
Move turtle to an absolute position. [extrait de goto.__doc__] |
heading() |
Return the turtle's current heading. [extrait de heading.__doc__] |
hideturtle() |
Makes the turtle invisible. [extrait de hideturtle.__doc__] |
home() |
Move turtle to the origin - coordinates (0,0). [extrait de home.__doc__] |
ht() |
Makes the turtle invisible. [extrait de ht.__doc__] |
isdown() |
Return True if pen is down, False if it's up. [extrait de isdown.__doc__] |
isfile(path) |
Test whether a path is a regular file [extrait de isfile.__doc__] |
isvisible() |
Return True if the Turtle is shown, False if it's hidden. [extrait de isvisible.__doc__] |
join(a, *p) |
Join two or more pathname components, inserting '/' as needed. [extrait de join.__doc__] |
left(angle) |
Turn turtle left by angle units. [extrait de left.__doc__] |
listen(xdummy=None, ydummy=None) |
Set focus on TurtleScreen (in order to collect key-events) [extrait de listen.__doc__] |
lt(angle) |
Turn turtle left by angle units. [extrait de lt.__doc__] |
mainloop() |
Starts event loop - calling Tkinter's mainloop function. [extrait de mainloop.__doc__] |
mode(mode=None) |
Set turtle-mode ('standard', 'logo' or 'world') and perform reset. [extrait de mode.__doc__] |
numinput(title, prompt, default=None, minval=None, maxval=None) |
Pop up a dialog window for input of a number. [extrait de numinput.__doc__] |
onclick(fun, btn=1, add=None) |
Bind fun to mouse-click event on this turtle on canvas. [extrait de onclick.__doc__] |
ondrag(fun, btn=1, add=None) |
Bind fun to mouse-move event on this turtle on canvas. [extrait de ondrag.__doc__] |
onkey(fun, key) |
Bind fun to key-release event of key. [extrait de onkey.__doc__] |
onkeypress(fun, key=None) |
Bind fun to key-press event of key if key is given, [extrait de onkeypress.__doc__] |
onkeyrelease(fun, key) |
Bind fun to key-release event of key. [extrait de onkeyrelease.__doc__] |
onrelease(fun, btn=1, add=None) |
Bind fun to mouse-button-release event on this turtle on canvas. [extrait de onrelease.__doc__] |
onscreenclick(fun, btn=1, add=None) |
Bind fun to mouse-click event on canvas. [extrait de onscreenclick.__doc__] |
ontimer(fun, t=0) |
Install a timer, which calls fun after t milliseconds. [extrait de ontimer.__doc__] |
pd() |
Pull the pen down -- drawing when moving. [extrait de pd.__doc__] |
pen(pen=None, **pendict) |
Return or set the pen's attributes. [extrait de pen.__doc__] |
pencolor(*args) |
Return or set the pencolor. [extrait de pencolor.__doc__] |
pendown() |
Pull the pen down -- drawing when moving. [extrait de pendown.__doc__] |
pensize(width=None) |
Set or return the line thickness. [extrait de pensize.__doc__] |
penup() |
Pull the pen up -- no drawing when moving. [extrait de penup.__doc__] |
pos() |
Return the turtle's current location (x,y), as a Vec2D-vector. [extrait de pos.__doc__] |
position() |
Return the turtle's current location (x,y), as a Vec2D-vector. [extrait de position.__doc__] |
pu() |
Pull the pen up -- no drawing when moving. [extrait de pu.__doc__] |
radians() |
Set the angle measurement units to radians. [extrait de radians.__doc__] |
read_docstrings(lang) |
Read in docstrings from lang-specific docstring dictionary. [extrait de read_docstrings.__doc__] |
readconfig(cfgdict) |
Read config-files, change configuration-dict accordingly. [extrait de readconfig.__doc__] |
register_shape(name, shape=None) |
Adds a turtle shape to TurtleScreen's shapelist. [extrait de register_shape.__doc__] |
reset() |
Delete the turtle's drawings and restore its default values. [extrait de reset.__doc__] |
resetscreen() |
Reset all Turtles on the Screen to their initial state. [extrait de resetscreen.__doc__] |
resizemode(rmode=None) |
Set resizemode to one of the values: "auto", "user", "noresize". [extrait de resizemode.__doc__] |
right(angle) |
Turn turtle right by angle units. [extrait de right.__doc__] |
rt(angle) |
Turn turtle right by angle units. [extrait de rt.__doc__] |
Screen() |
Return the singleton screen object. [extrait de Screen.__doc__] |
screensize(canvwidth=None, canvheight=None, bg=None) |
Resize the canvas the turtles are drawing on. [extrait de screensize.__doc__] |
seth(to_angle) |
Set the orientation of the turtle to to_angle. [extrait de seth.__doc__] |
setheading(to_angle) |
Set the orientation of the turtle to to_angle. [extrait de setheading.__doc__] |
setpos(x, y=None) |
Move turtle to an absolute position. [extrait de setpos.__doc__] |
setposition(x, y=None) |
Move turtle to an absolute position. [extrait de setposition.__doc__] |
settiltangle(angle) |
Rotate the turtleshape to point in the specified direction [extrait de settiltangle.__doc__] |
setundobuffer(size) |
Set or disable undobuffer. [extrait de setundobuffer.__doc__] |
setup(width=0.5, height=0.75, startx=None, starty=None) |
Set the size and position of the main window. [extrait de setup.__doc__] |
setworldcoordinates(llx, lly, urx, ury) |
Set up a user defined coordinate-system. [extrait de setworldcoordinates.__doc__] |
setx(x) |
Set the turtle's first coordinate to x [extrait de setx.__doc__] |
sety(y) |
Set the turtle's second coordinate to y [extrait de sety.__doc__] |
shape(name=None) |
Set turtle shape to shape with given name / return current shapename. [extrait de shape.__doc__] |
shapesize(stretch_wid=None, stretch_len=None, outline=None) |
Set/return turtle's stretchfactors/outline. Set resizemode to "user". [extrait de shapesize.__doc__] |
shapetransform(t11=None, t12=None, t21=None, t22=None) |
Set or return the current transformation matrix of the turtle shape. [extrait de shapetransform.__doc__] |
shearfactor(shear=None) |
Set or return the current shearfactor. [extrait de shearfactor.__doc__] |
showturtle() |
Makes the turtle visible. [extrait de showturtle.__doc__] |
speed(speed=None) |
Return or set the turtle's speed. [extrait de speed.__doc__] |
split(p) |
Split a pathname. Returns tuple "(head, tail)" where "tail" is [extrait de split.__doc__] |
st() |
Makes the turtle visible. [extrait de st.__doc__] |
stamp() |
Stamp a copy of the turtleshape onto the canvas and return its id. [extrait de stamp.__doc__] |
textinput(title, prompt) |
Pop up a dialog window for input of a string. [extrait de textinput.__doc__] |
tilt(angle) |
Rotate the turtleshape by angle. [extrait de tilt.__doc__] |
tiltangle(angle=None) |
Set or return the current tilt-angle. [extrait de tiltangle.__doc__] |
title(titlestring) |
Set title of turtle-window [extrait de title.__doc__] |
towards(x, y=None) |
Return the angle of the line from the turtle's position to (x, y). [extrait de towards.__doc__] |
tracer(n=None, delay=None) |
Turns turtle animation on/off and set delay for update drawings. [extrait de tracer.__doc__] |
turtles() |
Return the list of turtles on the [extrait de turtles.__doc__] |
turtlesize(stretch_wid=None, stretch_len=None, outline=None) |
Set/return turtle's stretchfactors/outline. Set resizemode to "user". [extrait de turtlesize.__doc__] |
undo() |
undo (repeatedly) the last turtle action. [extrait de undo.__doc__] |
undobufferentries() |
Return count of entries in the undobuffer. [extrait de undobufferentries.__doc__] |
up() |
Pull the pen up -- no drawing when moving. [extrait de up.__doc__] |
update() |
Perform a TurtleScreen update. [extrait de update.__doc__] |
width(width=None) |
Set or return the line thickness. [extrait de width.__doc__] |
window_height() |
Return the height of the turtle window. [extrait de window_height.__doc__] |
window_width() |
Return the width of the turtle window. [extrait de window_width.__doc__] |
write(arg, move=False, align='left', font=('Arial', 8, 'normal')) |
Write text at the current turtle position. [extrait de write.__doc__] |
write_docstringdict(filename='turtle_docstringdict') |
Create and write docstring-dictionary to file. [extrait de write_docstringdict.__doc__] |
xcor() |
Return the turtle's x coordinate. [extrait de xcor.__doc__] |
ycor() |
Return the turtle's y coordinate [extrait de ycor.__doc__] |
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :