Searched refs:turtle (Results 1 - 25 of 45) sorted by relevance

12

/external/python/cpython3/Doc/includes/
H A Dturtle-star.py1 from turtle import *
/external/ImageMagick/PerlMagick/demo/
H A Dlsys.pl12 my ($x, $y) = $turtle->state();
26 $turtle->forward($changes->{"distance"},
29 '-' => sub{ $turtle->turn(-$changes->{"dtheta"}); }, # counter-clockwise
30 '+' => sub{ $turtle->turn($changes->{"dtheta"}); }, # Turn clockwise
31 'M' => sub{ $turtle->mirror(); }, # Mirror
32 '[' => sub{ push(@statestack, [$turtle->state()]); }, # Begin branch
33 ']' => sub{ $turtle->setstate(@{pop(@statestack)}); }, # End branch
61 $turtle=new Turtle($imagesize/2, $imagesize, 0, 1);
/external/python/cpython2/Demo/turtle/
H A Dtdemo_paint.py2 """ turtle-example-suite:
8 - left mouse button moves turtle
11 (no line drawn when the turtle moves) and
22 from turtle import *
H A Dtdemo_I_dontlike_tiltdemo.py2 """ turtle-example-suite:
8 turtle shape
15 from turtle import *
H A Dtdemo_peace.py2 """ turtle-example-suite:
9 it only uses turtle commands.
12 from turtle import *
H A Dtdemo_yinyang.py2 """ turtle-example-suite:
14 from turtle import *
H A DturtleDemo.py10 import turtle namespace
50 ('About turtle module', "about_turtle.txt"),
56 self.root = root = turtle._root = Tk()
57 root.title('Python turtle-graphics examples')
129 turtle._Screen._root = root
132 turtle._Screen._canvas = self._canvas = canvas = turtle.ScrolledCanvas(
138 self.screen = _s_ = turtle.Screen()
139 turtle.TurtleScreen.__init__(_s_, _s_._canvas)
141 turtle
[all...]
H A Dtdemo_chaos.py7 from turtle import *
H A Dtdemo_tree.py2 """ turtle-example-suite:
18 from turtle import Turtle, mainloop
H A Dtdemo_nim.py0 """ turtle-example-suite:
13 import turtle namespace
89 class Stick(turtle.Turtle):
91 turtle.Turtle.__init__(self, visible=False)
124 self.writer = turtle.Turtle(visible=False)
218 mainscreen = turtle.Screen()
226 turtle.mainloop()
H A Dtdemo_colormixer.py3 from turtle import Screen, Turtle, mainloop
9 self.shape("turtle")
H A Dtdemo_lindenmayer_indian.py2 """ turtle-example-suite:
12 which can easily be implemented with turtle
28 from turtle import *
H A Dtdemo_minimal_hanoi.py2 """ turtle-example-suite:
20 from turtle import *
62 ht(); penup(); goto(0, -225) # writer turtle
H A Dtdemo_two_canvases.py9 from turtle import TurtleScreen, RawTurtle, TK
32 t.shape("turtle")
H A Dtdemo_wikipedia.py0 """ turtle-example-suite:
6 inspired by the Wikipedia article on turtle
10 example) copies of our first turtle p.
16 from turtle import Screen, Turtle, mainloop
/external/python/cpython3/Lib/turtledemo/
H A Dpaint.py2 """ turtle-example-suite:
8 - left mouse button moves turtle
11 (no line drawn when the turtle moves) and
22 from turtle import *
H A Dpeace.py2 """ turtle-example-suite:
9 it only uses turtle commands.
12 from turtle import *
H A Dyinyang.py2 """ turtle-example-suite:
14 from turtle import *
H A D__main__.py62 turtle. Global variables should be initialized in main().
84 code should catch the turtle.Terminator exception that will be
97 import turtle namespace
123 ('About turtle module', turtle.__doc__),
131 self.root = root = turtle._root = Tk()
132 root.title('Python turtle-graphics examples')
233 turtle._Screen._root = root
236 turtle._Screen._canvas = self._canvas = canvas = turtle
[all...]
H A Dchaos.py7 from turtle import *
H A Dround_dance.py0 """ turtle-example-suite:
5 (Needs version 1.1 of the turtle module that
25 from turtle import *
H A Dtree.py2 """ turtle-example-suite:
18 from turtle import Turtle, mainloop
H A Dnim.py0 """ turtle-example-suite:
13 import turtle namespace
89 class Stick(turtle.Turtle):
91 turtle.Turtle.__init__(self, visible=False)
124 self.writer = turtle.Turtle(visible=False)
218 mainscreen = turtle.Screen()
226 turtle.mainloop()
/external/python/cpython2/Lib/test/
H A Dtest_turtle.py5 turtle = support.import_module('turtle') variable
6 Vec2D = turtle.Vec2D
25 exampleturtle = turtle
61 parsed_cfg = turtle.config_dict(cfg_name)
80 'exampleturtle': 'turtle',
91 parsed_cfg = turtle.config_dict(cfg_name)
108 parsed_cfg = turtle.config_dict(cfg_name)
250 self.nav = turtle.TNavigator()
402 another_turtle = turtle
[all...]
/external/python/cpython3/Lib/test/
H A Dtest_turtle.py5 turtle = support.import_module('turtle') variable
6 Vec2D = turtle.Vec2D
25 exampleturtle = turtle
61 parsed_cfg = turtle.config_dict(cfg_name)
80 'exampleturtle': 'turtle',
91 parsed_cfg = turtle.config_dict(cfg_name)
108 parsed_cfg = turtle.config_dict(cfg_name)
254 self.nav = turtle.TNavigator()
406 another_turtle = turtle
[all...]

Completed in 306 milliseconds

12