turtle
index
/usr/lib/python2.1/lib-tk/turtle.py

# LogoMation-like turtle graphics

 
Modules
            
Tkinter

 
Classes
            
exceptions.Exception
Error
RawPen
Pen

 
class Error(exceptions.Exception)
       
  
__getitem__(...) from exceptions.Exception
__init__(...) from exceptions.Exception
__str__(...) from exceptions.Exception

 
class Pen(RawPen)
       
  
__init__(self)
_destroy(self)
_goto(self, x1, y1) from RawPen
backward(self, distance) from RawPen
circle(self, radius, extent=None) from RawPen
clear(self) from RawPen
color(self, *args) from RawPen
degrees(self, fullcircle=360.0) from RawPen
down(self) from RawPen
fill(self, flag) from RawPen
forward(self, distance) from RawPen
goto(self, *args) from RawPen
left(self, angle) from RawPen
radians(self) from RawPen
reset(self) from RawPen
right(self, angle) from RawPen
tracer(self, flag) from RawPen
up(self) from RawPen
width(self, width) from RawPen
write(self, arg, move=0) from RawPen

 
class RawPen
       
  
__init__(self, canvas)
_goto(self, x1, y1)
backward(self, distance)
circle(self, radius, extent=None)
clear(self)
color(self, *args)
degrees(self, fullcircle=360.0)
down(self)
fill(self, flag)
forward(self, distance)
goto(self, *args)
left(self, angle)
radians(self)
reset(self)
right(self, angle)
tracer(self, flag)
up(self)
width(self, width)
write(self, arg, move=0)

 
Functions
            
_getpen()
acos(...)
acos(x)
 
Return the arc cosine of x.
asin(...)
asin(x)
 
Return the arc sine of x.
atan(...)
atan(x)
 
Return the arc tangent of x.
atan2(...)
atan2(y, x)
 
Return atan(y/x).
backward(distance)
ceil(...)
ceil(x)
 
Return the ceiling of x as a real.
circle(radius, extent=None)
clear()
color(*args)
cos(...)
cos(x)
 
Return the cosine of x.
cosh(...)
cosh(x)
 
Return the hyperbolic cosine of x.
degrees()
demo()
down()
exp(...)
exp(x)
 
Return e raised to the power of x.
fabs(...)
fabs(x)
 
Return the absolute value of the real x.
fill(flag)
floor(...)
floor(x)
 
Return the floor of x as a real.
fmod(...)
fmod(x,y)
 
Return fmod(x, y), according to platform C.  x % y may differ.
forward(distance)
frexp(...)
frexp(x)
 
Return the mantissa and exponent of x, as pair (m, e).
m is a float and e is an int, such that x = m * 2.**e.
If x is 0, m and e are both 0.  Else 0.5 <= abs(m) < 1.0.
goto(*args)
hypot(...)
hypot(x,y)
 
Return the Euclidean distance, sqrt(x*x + y*y).
ldexp(...)
ldexp_doc(x, i)
 
Return x * (2**i).
left(angle)
log(...)
log(x)
 
Return the natural logarithm of x.
log10(...)
log10(x)
 
Return the base-10 logarithm of x.
modf(...)
modf(x)
 
Return the fractional and integer parts of x. Both results carry the sign
of x.  The integer part is returned as a real.
pow(...)
pow(x,y)
 
Return x**y.
radians()
reset()
right(angle)
sin(...)
sin(x)
 
Return the sine of x.
sinh(...)
sinh(x)
 
Return the hyperbolic sine of x.
sqrt(...)
sqrt(x)
 
Return the square root of x.
tan(...)
tan(x)
 
Return the tangent of x.
tanh(...)
tanh(x)
 
Return the hyperbolic tangent of x.
tracer(flag)
up()
width(width)
write(arg, move=0)

 
Data
             __file__ = '/usr/lib/python2.1/lib-tk/turtle.pyc'
__name__ = 'turtle'
_canvas = None
_pen = None
_root = None
e = 2.7182818284590451
pi = 3.1415926535897931