/external/python/cpython2/Doc/library/ |
D | turtle.rst | 2 :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/ |
D | turtle.rst | 2 :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 …]
|
D | cmd.rst | 232 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/ |
D | about_turtle.txt | 3 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 …]
|
D | turtleDemo.py | 10 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 …]
|
D | tdemo_nim.py | 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()
|
D | turtle.cfg | 9 title = Python turtle graphics demo.
|
D | about_turtledemo.txt | 6 Tiny demo Viewer to view turtle graphics example scripts.
|
D | tdemo_paint.py | 22 from turtle import *
|
D | tdemo_peace.py | 12 from turtle import *
|
/external/ImageMagick/PerlMagick/demo/ |
D | lsys.pl | 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 61 $turtle=new Turtle($imagesize/2, $imagesize, 0, 1);
|
/external/python/cpython3/Lib/turtledemo/ |
D | __main__.py | 97 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 …]
|
D | nim.py | 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()
|
D | turtle.cfg | 9 title = Python turtle graphics demo.
|
D | paint.py | 22 from turtle import *
|
/external/llvm-project/llvm/test/Analysis/IRSimilarityIdentifier/ |
D | basic.ll | 10 ; 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() {
|
D | different.ll | 8 ; 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/ |
D | gmock_for_dummies.md | 123 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/ |
D | test_turtle.py | 5 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/ |
D | turtle.py | 1210 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/ |
D | test_turtle.py | 5 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/ |
D | turtle.py | 1157 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/ |
D | 2.6.rst | 36 Allow repeated calls to turtle.Screen, by making it a true singleton object. 56 Made turtle respect scale factors.
|
/external/python/cpython3/Doc/includes/ |
D | turtle-star.py | 1 from turtle import *
|
/external/llvm-project/clang/test/Sema/ |
D | attr-target.c | 18 int __attribute__((target("arch="))) turtle() { return 4; } in turtle() function
|