/external/python/cpython2/Demo/turtle/ |
tdemo_colormixer.py | 3 from turtle import Screen, Turtle, mainloop 5 class ColorTurtle(Turtle): 8 Turtle.__init__(self) 9 self.shape("turtle") 48 writer = Turtle()
|
tdemo_clock.py | 3 """ turtle-example-suite: 13 from turtle import * 63 second_hand = Turtle() 66 minute_hand = Turtle() 69 hour_hand = Turtle() 77 writer = Turtle()
|
tdemo_tree.py | 2 """ turtle-example-suite: 14 (2) Turtle-cloning: At each branching point 18 from turtle import Turtle, mainloop 40 p = Turtle()
|
tdemo_wikipedia.py | 0 """ 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 39 p=Turtle()
|
tdemo_planet_and_moon.py | 2 """ turtle-example-suite: 20 from turtle import Shape, Turtle, mainloop, Vec2D as Vec 39 class Star(Turtle): 41 Turtle.__init__(self, shape=shape) 72 s = Turtle()
|
tdemo_minimal_hanoi.py | 2 """ turtle-example-suite: 20 from turtle import * 22 class Disc(Turtle): 24 Turtle.__init__(self, shape="square", visible=False) 62 ht(); penup(); goto(0, -225) # writer turtle
|
tdemo_nim.py | 0 """ turtle-example-suite: 13 import turtle 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( [all...] |
tdemo_bytedesign.py | 2 """ turtle-example-suite: 7 of PythonCard's turtle graphcis. 10 Problem Solving with Logo: Using Turtle 26 from turtle import Turtle, mainloop 31 class Designer(Turtle):
|
/external/python/cpython3/Lib/turtledemo/ |
colormixer.py | 3 from turtle import Screen, Turtle, mainloop 5 class ColorTurtle(Turtle): 8 Turtle.__init__(self) 9 self.shape("turtle") 48 writer = Turtle()
|
forest.py | 14 from turtle import Turtle, colormode, tracer, mainloop 33 # fuer jede turtle eine! 85 p = Turtle() 88 u = doit1(6, Turtle(undobuffersize=1)) 89 s = doit2(7, Turtle(undobuffersize=1)) 90 t = doit3(5, Turtle(undobuffersize=1))
|
clock.py | 3 """ turtle-example-suite: 13 from turtle import * 63 second_hand = Turtle() 66 minute_hand = Turtle() 69 hour_hand = Turtle() 77 writer = Turtle()
|
tree.py | 2 """ turtle-example-suite: 14 (2) Turtle-cloning: At each branching point 18 from turtle import Turtle, mainloop 40 p = Turtle()
|
wikipedia.py | 0 """ 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 39 p=Turtle()
|
planet_and_moon.py | 2 """ turtle-example-suite: 20 from turtle import Shape, Turtle, mainloop, Vec2D as Vec 38 class Star(Turtle): 40 Turtle.__init__(self, shape=shape) 71 s = Turtle()
|
minimal_hanoi.py | 2 """ turtle-example-suite: 20 from turtle import * 22 class Disc(Turtle): 24 Turtle.__init__(self, shape="square", visible=False) 62 ht(); penup(); goto(0, -225) # writer turtle
|
nim.py | 0 """ turtle-example-suite: 13 import turtle 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( [all...] |
bytedesign.py | 2 """ turtle-example-suite: 7 of PythonCard's turtle graphics. 10 Problem Solving with Logo: Using Turtle 25 from turtle import Turtle, mainloop 30 class Designer(Turtle):
|
sorting_animate.py | 18 from turtle import * 22 class Block(Turtle): 26 Turtle.__init__(self, shape="square", visible=False)
|
/external/ImageMagick/PerlMagick/demo/ |
lsys.pl | 6 use Turtle; 12 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 60 # Turtle: the midpoint of the bottom edge of the image, pointing up. 61 $turtle=new Turtle($imagesize/2, $imagesize, 0, 1) [all...] |
Turtle.pm | 2 Turtle; 57 "Turtle.pm";
|
/prebuilts/gdb/darwin-x86/lib/python2.7/lib-tk/ |
turtle.py | 2 # turtle.py: a Tkinter based turtle graphics module for Python 26 Turtle graphics is a popular way for introducing programming to 30 Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it 31 the command turtle.forward(15), and it moves (on-screen!) 15 pixels in 33 command turtle.right(25), and it rotates in-place 25 degrees clockwise. 38 ----- turtle.py 40 This module is an extended reimplementation of turtle.py from the 43 It tries to keep the merits of turtle.py and to be (nearly) 100 [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/lib-tk/ |
turtle.py | 2 # turtle.py: a Tkinter based turtle graphics module for Python 26 Turtle graphics is a popular way for introducing programming to 30 Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it 31 the command turtle.forward(15), and it moves (on-screen!) 15 pixels in 33 command turtle.right(25), and it rotates in-place 25 degrees clockwise. 38 ----- turtle.py 40 This module is an extended reimplementation of turtle.py from the 43 It tries to keep the merits of turtle.py and to be (nearly) 100 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib-tk/ |
turtle.py | 2 # turtle.py: a Tkinter based turtle graphics module for Python 26 Turtle graphics is a popular way for introducing programming to 30 Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it 31 the command turtle.forward(15), and it moves (on-screen!) 15 pixels in 33 command turtle.right(25), and it rotates in-place 25 degrees clockwise. 38 ----- turtle.py 40 This module is an extended reimplementation of turtle.py from the 43 It tries to keep the merits of turtle.py and to be (nearly) 100 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib-tk/ |
turtle.py | 2 # turtle.py: a Tkinter based turtle graphics module for Python 26 Turtle graphics is a popular way for introducing programming to 30 Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it 31 the command turtle.forward(15), and it moves (on-screen!) 15 pixels in 33 command turtle.right(25), and it rotates in-place 25 degrees clockwise. 38 ----- turtle.py 40 This module is an extended reimplementation of turtle.py from the 43 It tries to keep the merits of turtle.py and to be (nearly) 100 [all...] |
/external/python/cpython2/Lib/lib-tk/ |
turtle.py | 2 # turtle.py: a Tkinter based turtle graphics module for Python 26 Turtle graphics is a popular way for introducing programming to 30 Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it 31 the command turtle.forward(15), and it moves (on-screen!) 15 pixels in 33 command turtle.right(25), and it rotates in-place 25 degrees clockwise. 38 ----- turtle.py 40 This module is an extended reimplementation of turtle.py from the 43 It tries to keep the merits of turtle.py and to be (nearly) 100 [all...] |