• Home
  • Raw
  • Download

Lines Matching refs:turtle

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'
264 'Move turtle to an absolute position with changing orientation. GOTO 100 200'
267 'Return turtle to the home position: HOME'
273 'Print the current turtle position: POSITION'
276 'Print the current turtle heading in degrees: HEADING'
282 'Undo (repeatedly) the last turtle action(s): UNDO'
284 'Clear the screen and return turtle to center: RESET'
287 'Stop recording, close the turtle window, and exit: BYE'
320 Here is a sample session with the turtle shell showing the help functions, using
325 Welcome to the turtle shell. Type help or ? to list commands.
327 (turtle) ?
334 (turtle) help forward
335 Move the turtle forward by the specified distance: FORWARD 10
336 (turtle) record spiral.cmd
337 (turtle) position
340 (turtle) heading
343 (turtle) reset
344 (turtle) circle 20
345 (turtle) right 30
346 (turtle) circle 40
347 (turtle) right 30
348 (turtle) circle 60
349 (turtle) right 30
350 (turtle) circle 80
351 (turtle) right 30
352 (turtle) circle 100
353 (turtle) right 30
354 (turtle) circle 120
355 (turtle) right 30
356 (turtle) circle 120
357 (turtle) heading
360 (turtle) forward 100
361 (turtle)
362 (turtle) right 90
363 (turtle) forward 100
364 (turtle)
365 (turtle) right 90
366 (turtle) forward 400
367 (turtle) right 90
368 (turtle) forward 500
369 (turtle) right 90
370 (turtle) forward 400
371 (turtle) right 90
372 (turtle) forward 300
373 (turtle) playback spiral.cmd
380 (turtle) bye