Home
last modified time | relevance | path

Searched refs:turtle (Results 1 – 25 of 115) sorted by relevance

12345

/external/python/cpython2/Doc/library/
Dturtle.rst2 :mod:`turtle` --- Turtle graphics for Tk
5 .. module:: turtle
11 from turtle import *
12 turtle = Turtle()
21 Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it …
22 command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the
24 ``turtle.right(25)``, and it rotates in-place 25 degrees clockwise.
29 The :mod:`turtle` module is an extended reimplementation of the same-named
32 It tries to keep the merits of the old turtle module and to be (nearly) 100%
37 The turtle module provides turtle graphics primitives, in both object-oriented
[all …]
/external/python/cpython3/Doc/library/
Dturtle.rst2 :mod:`turtle` --- Turtle graphics
5 .. module:: turtle
10 **Source code:** :source:`Lib/turtle.py`
14 from turtle import *
15 turtle = Turtle()
26 Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it …
27 command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the
29 ``turtle.right(25)``, and it rotates in-place 25 degrees clockwise.
36 .. image:: turtle-star.*
39 .. literalinclude:: ../includes/turtle-star.py
[all …]
Dcmd.rst232 the commands in the :mod:`turtle` module.
234 Basic turtle commands such as :meth:`~turtle.forward` are added to a
236 converted to a number and dispatched to the turtle module. The docstring is
246 from turtle import *
249 intro = 'Welcome to the turtle shell. Type help or ? to list commands.\n'
250 prompt = '(turtle) '
253 # ----- basic turtle commands -----
255 'Move the turtle forward by the specified distance: FORWARD 10'
258 'Turn turtle right by given number of degrees: RIGHT 20'
261 'Turn turtle left by given number of degrees: LEFT 90'
[all …]
/external/python/cpython2/Demo/turtle/
Dabout_turtle.txt3 A new turtle module for Python
10 Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it
11 the command turtle.forward(15), and it moves (on-screen!) 15 pixels in
13 command turtle.right(25), and it rotates in-place 25 degrees clockwise.
18 ----- turtle.py
20 This module is an extended reimplementation of turtle.py from the
23 It tries to keep the merits of turtle.py and to be (nearly) 100%
31 - Better animation of the turtle movements, especially of turning the
32 turtle. So the turtles can more easily be used as a visual feedback
35 - Different turtle shapes, gif-images as turtle shapes, user defined
[all …]
DturtleDemo.py10 import turtle
56 self.root = root = turtle._root = Tk()
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.RawTurtle.screens = [_s_]
220 turtle.TurtleScreen._RUNNING = True
233 except turtle.Terminator:
257 turtle.TurtleScreen._RUNNING = False
[all …]
Dtdemo_nim.py13 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()
Dturtle.cfg9 title = Python turtle graphics demo.
Dabout_turtledemo.txt6 Tiny demo Viewer to view turtle graphics example scripts.
Dtdemo_paint.py22 from turtle import *
Dtdemo_peace.py12 from turtle import *
/external/ImageMagick/PerlMagick/demo/
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/cpython3/Lib/turtledemo/
D__main__.py97 import turtle
123 ('About turtle module', turtle.__doc__),
131 self.root = root = turtle._root = Tk()
233 turtle._Screen._root = root
236 turtle._Screen._canvas = self._canvas = canvas = turtle.ScrolledCanvas(
242 self.screen = _s_ = turtle.Screen()
243 turtle.TurtleScreen.__init__(_s_, _s_._canvas)
245 turtle.RawTurtle.screens = [_s_]
319 turtle.TurtleScreen._RUNNING = False
335 turtle.TurtleScreen._RUNNING = True
[all …]
Dnim.py13 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()
Dturtle.cfg9 title = Python turtle graphics demo.
Dpaint.py22 from turtle import *
/external/llvm-project/llvm/test/Analysis/IRSimilarityIdentifier/
Dbasic.ll10 ; CHECK-NEXT: Function: turtle, Basic Block: (unnamed)
15 ; CHECK-NEXT: Function: turtle, Basic Block: (unnamed)
20 ; CHECK-NEXT: Function: turtle, Basic Block: (unnamed)
25 ; CHECK-NEXT: Function: turtle, Basic Block: (unnamed)
30 ; CHECK-NEXT: Function: turtle, Basic Block: (unnamed)
49 define void @turtle() {
Ddifferent.ll8 ; CHECK-NEXT: Function: turtle, Basic Block: (unnamed)
9 ; CHECK-NEXT: Function: turtle, Basic Block: (unnamed)
31 define void @turtle(i32* %0, i32* %1, i32* %2, i32* %3) {
/external/googletest/docs/
Dgmock_for_dummies.md123 You can control whether the turtle's movement will leave a trace using `PenUp()`
126 turtle.
226 #include "path/to/mock-turtle.h"
233 MockTurtle turtle; // #2
234 EXPECT_CALL(turtle, PenDown()) // #3
237 Painter painter(&turtle); // #4
326 EXPECT_CALL(turtle, GetX())
333 says that the `turtle` object's `GetX()` method will be called five times, it
349 // Expects the turtle to move forward by 100 units.
350 EXPECT_CALL(turtle, Forward(100));
[all …]
/external/python/cpython2/Lib/test/
Dtest_turtle.py5 turtle = support.import_module('turtle') variable
6 Vec2D = turtle.Vec2D
61 parsed_cfg = turtle.config_dict(cfg_name)
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.TNavigator()
412 tpen = turtle.TPen()
422 tpen = turtle.TPen()
/external/python/cpython3/Lib/
Dturtle.py1210 for turtle in self._turtles:
1211 turtle._setmode(self._mode)
1212 turtle.reset()
2546 self.turtle = _TurtleImage(screen, shape)
2729 turtle = self.turtle
2731 self.turtle = None # too make self deepcopy-able
2736 self.turtle = turtle
2739 q.turtle = _TurtleImage(screen, self.turtle.shapeIndex)
2742 ttype = screen._shapes[self.turtle.shapeIndex]._type
2744 q.turtle._item = screen._createpoly()
[all …]
/external/python/cpython3/Lib/test/
Dtest_turtle.py5 turtle = support.import_module('turtle') variable
6 Vec2D = turtle.Vec2D
61 parsed_cfg = turtle.config_dict(cfg_name)
91 parsed_cfg = turtle.config_dict(cfg_name)
108 parsed_cfg = turtle.config_dict(cfg_name)
268 self.nav = turtle.TNavigator()
420 another_turtle = turtle.TNavigator()
430 tpen = turtle.TPen()
440 tpen = turtle.TPen()
/external/python/cpython2/Lib/lib-tk/
Dturtle.py1157 for turtle in self._turtles:
1158 turtle._setmode(self._mode)
1159 turtle.reset()
2450 self.turtle = _TurtleImage(screen, shape)
2633 turtle = self.turtle
2635 self.turtle = None # too make self deepcopy-able
2640 self.turtle = turtle
2643 q.turtle = _TurtleImage(screen, self.turtle.shapeIndex)
2646 ttype = screen._shapes[self.turtle.shapeIndex]._type
2648 q.turtle._item = screen._createpoly()
[all …]
/external/python/cpython2/Misc/NEWS.d/
D2.6.rst36 Allow repeated calls to turtle.Screen, by making it a true singleton object.
56 Made turtle respect scale factors.
/external/python/cpython3/Doc/includes/
Dturtle-star.py1 from turtle import *
/external/llvm-project/clang/test/Sema/
Dattr-target.c18 int __attribute__((target("arch="))) turtle() { return 4; } in turtle() function

12345