chunk_id stringlengths 36 36 | source stringclasses 35
values | source_url stringlengths 0 290 | upstream_license stringclasses 1
value | document_id stringlengths 36 36 | chunk_index int64 0 324k | retrieved_at stringclasses 2
values | chunker_version stringclasses 4
values | content_hash stringlengths 15 64 | content stringlengths 50 44.7k | namespace stringclasses 9
values | source_name stringclasses 35
values | raw_text stringlengths 50 44.7k | cleaned_text stringlengths 50 44.7k | tags stringclasses 49
values | collection_name stringclasses 11
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f170e87-49f7-439d-b96d-17a2bc823ebf | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,300 | supabase-export-v2 | 8769726b214c8f09 | from a ``Screen`` method is called. Similarly, a turtle object is automatically created whenever any of the functions derived from a Turtle method is called.
To use multiple turtles on a screen, the object-oriented interface must be
used. | trusted_official_docs | CPython Docs | from a ``Screen`` method is called. Similarly, a turtle object is automatically created whenever any of the functions derived from a Turtle method is called.
To use multiple turtles on a screen, the object-oriented interface must be
used. | from a ``Screen`` method is called. Similarly, a turtle object is automatically created whenever any of the functions derived from a Turtle method is called.
To use multiple turtles on a screen, the object-oriented interface must be
used. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5f228e87-d282-451e-bfe2-972b0bae8e68 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,724 | supabase-export-v2 | 8c9457cd80e388e2 | t.mainloop()
to the end of the script. The script will now wait to be dismissed and
will not exit until it is terminated, for example by closing the turtle
graphics window. | trusted_official_docs | CPython Docs | t.mainloop()
to the end of the script. The script will now wait to be dismissed and
will not exit until it is terminated, for example by closing the turtle
graphics window. | t.mainloop()
to the end of the script. The script will now wait to be dismissed and
will not exit until it is terminated, for example by closing the turtle
graphics window. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
627a4555-ee98-4624-8b1e-06fc0e798bec | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,147 | supabase-export-v2 | 5aff1edf4082a17f | Temporarily disable turtle animation. The code written inside the ``no_animation`` block will not be animated; once the code block is exited, the drawing will appear.
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | Temporarily disable turtle animation. The code written inside the ``no_animation`` block will not be animated; once the code block is exited, the drawing will appear.
.. doctest::
:skipif: _tkinter is None | Temporarily disable turtle animation. The code written inside the ``no_animation`` block will not be animated; once the code block is exited, the drawing will appear.
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
630a55e7-41b9-4b36-a78d-0954f179d168 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,190 | supabase-export-v2 | 640f4f89cc35ce31 | .. function:: mainloop() done()
Starts event loop - calling Tkinter's mainloop function. Must be the last statement in a turtle graphics program. Must *not* be used if a script is run from within IDLE in -n mode
(No subprocess) - for interactive use of turtle graphics. :: | trusted_official_docs | CPython Docs | .. function:: mainloop() done()
Starts event loop - calling Tkinter's mainloop function. Must be the last statement in a turtle graphics program. Must *not* be used if a script is run from within IDLE in -n mode
(No subprocess) - for interactive use of turtle graphics. :: | .. function:: mainloop() done()
Starts event loop - calling Tkinter's mainloop function. Must be the last statement in a turtle graphics program. Must *not* be used if a script is run from within IDLE in -n mode
(No subprocess) - for interactive use of turtle graphics. :: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
63382160-8f10-45f1-a1b5-1f8bff2a7ecb | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,210 | supabase-export-v2 | f80b16b2f571dd43 | :param cmode: one of the values 1.0 or 255
Return the colormode or set it to 1.0 or 255. Subsequently *r*, *g*, *b*
values of color triples have to be in the range 0..*cmode*. | trusted_official_docs | CPython Docs | :param cmode: one of the values 1.0 or 255
Return the colormode or set it to 1.0 or 255. Subsequently *r*, *g*, *b*
values of color triples have to be in the range 0..*cmode*. | :param cmode: one of the values 1.0 or 255
Return the colormode or set it to 1.0 or 255. Subsequently *r*, *g*, *b*
values of color triples have to be in the range 0..*cmode*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
64b9cbce-c464-48e9-9ec8-d7459d11d239 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,872 | supabase-export-v2 | 10c2f7ea9751cafc | :param x: a number or a pair/vector of numbers or a turtle instance :param y: a number if *x* is a number, else ``None``
Return the angle between the line from turtle position to position specified
by (x,y), the vector or the other turtle. This depends on the turtle's start
orientation which depends on the mode - "st... | trusted_official_docs | CPython Docs | :param x: a number or a pair/vector of numbers or a turtle instance :param y: a number if *x* is a number, else ``None``
Return the angle between the line from turtle position to position specified
by (x,y), the vector or the other turtle. This depends on the turtle's start
orientation which depends on the mode - "st... | :param x: a number or a pair/vector of numbers or a turtle instance :param y: a number if *x* is a number, else ``None``
Return the angle between the line from turtle position to position specified
by (x,y), the vector or the other turtle. This depends on the turtle's start
orientation which depends on the mode - "st... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6769f782-28f7-4367-9c97-a2c5ef53c79c | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,259 | supabase-export-v2 | 04533a888ed66cf8 | size and position of the main window. Default values of arguments are stored in the configuration dictionary and can be changed via a :file:`turtle.cfg` file.
:param width: if an integer, a size in pixels, if a float, a fraction of the
screen; default is 50% of screen
:param height: if an integer, the height in pixel... | trusted_official_docs | CPython Docs | size and position of the main window. Default values of arguments are stored in the configuration dictionary and can be changed via a :file:`turtle.cfg` file.
:param width: if an integer, a size in pixels, if a float, a fraction of the
screen; default is 50% of screen
:param height: if an integer, the height in pixel... | size and position of the main window. Default values of arguments are stored in the configuration dictionary and can be changed via a :file:`turtle.cfg` file.
:param width: if an integer, a size in pixels, if a float, a fraction of the
screen; default is 50% of screen
:param height: if an integer, the height in pixel... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
678aeca5-1055-44e9-8302-139ea2029578 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,984 | supabase-export-v2 | c97fcca7b093148e | turtle's drawings from the screen. Do not move turtle. State and position of the turtle as well as drawings of other turtles are not affected.
.. function:: write(arg, move=False, align="left", font=("Arial", 8, "normal")) | trusted_official_docs | CPython Docs | turtle's drawings from the screen. Do not move turtle. State and position of the turtle as well as drawings of other turtles are not affected.
.. function:: write(arg, move=False, align="left", font=("Arial", 8, "normal")) | turtle's drawings from the screen. Do not move turtle. State and position of the turtle as well as drawings of other turtles are not affected.
.. function:: write(arg, move=False, align="left", font=("Arial", 8, "normal")) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
67be648c-dfbc-4cda-b238-65f81dc74557 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,052 | supabase-export-v2 | 6e73f3610dc11026 | unglow(self,x,y): ... self.fillcolor("") ... >>> turtle = MyTurtle() >>> turtle.onclick(turtle.glow) # clicking on turtle turns fillcolor red, >>> turtle.onrelease(turtle.unglow) # releasing turns it to transparent.
.. function:: ondrag(fun, btn=1, add=None) | trusted_official_docs | CPython Docs | unglow(self,x,y): ... self.fillcolor("") ... >>> turtle = MyTurtle() >>> turtle.onclick(turtle.glow) # clicking on turtle turns fillcolor red, >>> turtle.onrelease(turtle.unglow) # releasing turns it to transparent.
.. function:: ondrag(fun, btn=1, add=None) | unglow(self,x,y): ... self.fillcolor("") ... >>> turtle = MyTurtle() >>> turtle.onclick(turtle.glow) # clicking on turtle turns fillcolor red, >>> turtle.onrelease(turtle.unglow) # releasing turns it to transparent.
.. function:: ondrag(fun, btn=1, add=None) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
692dee90-5d85-4857-b862-c8bd99bb5db2 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,324 | supabase-export-v2 | 039784b33c8becd7 | Translation of docstrings into different languages --------------------------------------------------
There is a utility to create a dictionary the keys of which are the method names
and the values of which are the docstrings of the public methods of the classes
Screen and Turtle. | trusted_official_docs | CPython Docs | Translation of docstrings into different languages --------------------------------------------------
There is a utility to create a dictionary the keys of which are the method names
and the values of which are the docstrings of the public methods of the classes
Screen and Turtle. | Translation of docstrings into different languages --------------------------------------------------
There is a utility to create a dictionary the keys of which are the method names
and the values of which are the docstrings of the public methods of the classes
Screen and Turtle. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6949e9fb-2e0b-445b-9d52-2a9366c43bf7 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,124 | supabase-export-v2 | a0307dcdb565c125 | .. function:: clear() :noindex:
.. note::
This TurtleScreen method is available as a global function only under the
name ``clearscreen``. The global function ``clear`` is a different one
derived from the Turtle method ``clear``. | trusted_official_docs | CPython Docs | .. function:: clear() :noindex:
.. note::
This TurtleScreen method is available as a global function only under the
name ``clearscreen``. The global function ``clear`` is a different one
derived from the Turtle method ``clear``. | .. function:: clear() :noindex:
.. note::
This TurtleScreen method is available as a global function only under the
name ``clearscreen``. The global function ``clear`` is a different one
derived from the Turtle method ``clear``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6a7487d6-8741-4710-8e2b-720443c7ec1e | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,330 | supabase-export-v2 | dbcb810a3a6c2ae5 | you have an appropriate entry in your :file:`turtle.cfg` file this dictionary will be read in at import time and will replace the original English docstrings.
At the time of this writing there are docstring dictionaries in German and in
Italian. (Requests please to glingl@aon.at.) | trusted_official_docs | CPython Docs | you have an appropriate entry in your :file:`turtle.cfg` file this dictionary will be read in at import time and will replace the original English docstrings.
At the time of this writing there are docstring dictionaries in German and in
Italian. (Requests please to glingl@aon.at.) | you have an appropriate entry in your :file:`turtle.cfg` file this dictionary will be read in at import time and will replace the original English docstrings.
At the time of this writing there are docstring dictionaries in German and in
Italian. (Requests please to glingl@aon.at.) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6ac8e43f-c002-4496-9079-dcb198551bf6 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,296 | supabase-export-v2 | 9e0719dc0ebfab1c | and there a number of key classes in the turtle object-oriented interface that can be used to create them and relate them to each other.
A :class:`Turtle` instance will automatically create a :class:`Screen`
instance if one is not already present. | trusted_official_docs | CPython Docs | and there a number of key classes in the turtle object-oriented interface that can be used to create them and relate them to each other.
A :class:`Turtle` instance will automatically create a :class:`Screen`
instance if one is not already present. | and there a number of key classes in the turtle object-oriented interface that can be used to create them and relate them to each other.
A :class:`Turtle` instance will automatically create a :class:`Screen`
instance if one is not already present. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6ae589e4-5d00-44ab-ae0b-09a30c7aa2b6 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,830 | supabase-export-v2 | 8296c2c4695b32de | arc in counterclockwise direction if *radius* is positive, otherwise in clockwise direction. Finally the direction of the turtle is changed by the amount of *extent*.
As the circle is approximated by an inscribed regular polygon, *steps*
determines the number of steps to use. If not given, it will be
calculated autom... | trusted_official_docs | CPython Docs | arc in counterclockwise direction if *radius* is positive, otherwise in clockwise direction. Finally the direction of the turtle is changed by the amount of *extent*.
As the circle is approximated by an inscribed regular polygon, *steps*
determines the number of steps to use. If not given, it will be
calculated autom... | arc in counterclockwise direction if *radius* is positive, otherwise in clockwise direction. Finally the direction of the turtle is changed by the amount of *extent*.
As the circle is approximated by an inscribed regular polygon, *steps*
determines the number of steps to use. If not given, it will be
calculated autom... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6b239d97-a3e1-400d-b118-8fc8f27fa87b | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,831 | supabase-export-v2 | f0b0ac94252f3b1f | regular polygon, *steps* determines the number of steps to use. If not given, it will be calculated automatically. May be used to draw regular polygons.
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | regular polygon, *steps* determines the number of steps to use. If not given, it will be calculated automatically. May be used to draw regular polygons.
.. doctest::
:skipif: _tkinter is None | regular polygon, *steps* determines the number of steps to use. If not given, it will be calculated automatically. May be used to draw regular polygons.
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6bbef589-29e4-49ae-a1e2-1ede72745c93 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,717 | supabase-export-v2 | 389c852911b20f68 | risk of a name conflict (this becomes even more an issue if you're using turtle graphics in a script where other modules might be imported).
The solution is to use ``import turtle`` - ``fd()`` becomes
``turtle.fd()``, ``width()`` becomes ``turtle.width()`` and so on. (If typing
"turtle" over and over again becomes tedi... | trusted_official_docs | CPython Docs | risk of a name conflict (this becomes even more an issue if you're using turtle graphics in a script where other modules might be imported).
The solution is to use ``import turtle`` - ``fd()`` becomes
``turtle.fd()``, ``width()`` becomes ``turtle.width()`` and so on. (If typing
"turtle" over and over again becomes tedi... | risk of a name conflict (this becomes even more an issue if you're using turtle graphics in a script where other modules might be imported).
The solution is to use ``import turtle`` - ``fd()`` becomes
``turtle.fd()``, ``width()`` becomes ``turtle.width()`` and so on. (If typing
"turtle" over and over again becomes tedi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6dc9a8c6-f40a-4b45-9e41-af2de57fdd91 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,337 | supabase-export-v2 | 05719514956e0a9c | = black resizemode = noresize visible = True language = english exampleturtle = turtle examplescreen = screen title = Python Turtle Graphics using_IDLE = False
Short explanation of selected entries: | trusted_official_docs | CPython Docs | = black resizemode = noresize visible = True language = english exampleturtle = turtle examplescreen = screen title = Python Turtle Graphics using_IDLE = False
Short explanation of selected entries: | = black resizemode = noresize visible = True language = english exampleturtle = turtle examplescreen = screen title = Python Turtle Graphics using_IDLE = False
Short explanation of selected entries: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6f2cad9d-f54d-4a4e-9e31-18203be2822d | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,823 | supabase-export-v2 | e59bfd6f7efad61d | Move turtle to the origin -- coordinates (0,0) -- and set its heading to its start-orientation (which depends on the mode, see :func:`mode`).
.. doctest::
:skipif: _tkinter is None
:hide: | trusted_official_docs | CPython Docs | Move turtle to the origin -- coordinates (0,0) -- and set its heading to its start-orientation (which depends on the mode, see :func:`mode`).
.. doctest::
:skipif: _tkinter is None
:hide: | Move turtle to the origin -- coordinates (0,0) -- and set its heading to its start-orientation (which depends on the mode, see :func:`mode`).
.. doctest::
:skipif: _tkinter is None
:hide: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6f9a35ed-5262-4299-9aa5-a337519b5371 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,734 | supabase-export-v2 | a60233a3f51a5180 | Note the last line. ``t.screen`` is an instance of the :class:`Screen` that a Turtle instance exists on; it's created automatically along with the turtle.
The turtle's screen can be customised, for example:: | trusted_official_docs | CPython Docs | Note the last line. ``t.screen`` is an instance of the :class:`Screen` that a Turtle instance exists on; it's created automatically along with the turtle.
The turtle's screen can be customised, for example:: | Note the last line. ``t.screen`` is an instance of the :class:`Screen` that a Turtle instance exists on; it's created automatically along with the turtle.
The turtle's screen can be customised, for example:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
714802b4-4e19-4914-8e7f-8c76b81688c9 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,133 | supabase-export-v2 | 4a6d91b7188ef565 | integer, new width of canvas in pixels :param canvheight: positive integer, new height of canvas in pixels :param bg: colorstring or color-tuple, new background color
If no arguments are given, return current (canvaswidth, canvasheight). Else
resize the canvas the turtles are drawing on. Do not alter the drawing
wind... | trusted_official_docs | CPython Docs | integer, new width of canvas in pixels :param canvheight: positive integer, new height of canvas in pixels :param bg: colorstring or color-tuple, new background color
If no arguments are given, return current (canvaswidth, canvasheight). Else
resize the canvas the turtles are drawing on. Do not alter the drawing
wind... | integer, new width of canvas in pixels :param canvheight: positive integer, new height of canvas in pixels :param bg: colorstring or color-tuple, new background color
If no arguments are given, return current (canvaswidth, canvasheight). Else
resize the canvas the turtles are drawing on. Do not alter the drawing
wind... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
71ad1080-6c34-4966-9bd1-e2250a318685 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,141 | supabase-export-v2 | 2f767fd483f64e00 | .. doctest:: :skipif: _tkinter is None
>>> screen.reset()
>>> screen.setworldcoordinates(-50,-7.5,50,7.5)
>>> for _ in range(72):
... left(10)
... >>> for _ in range(8):
... left(45); fd(2) # a regular octagon | trusted_official_docs | CPython Docs | .. doctest:: :skipif: _tkinter is None
>>> screen.reset()
>>> screen.setworldcoordinates(-50,-7.5,50,7.5)
>>> for _ in range(72):
... left(10)
... >>> for _ in range(8):
... left(45); fd(2) # a regular octagon | .. doctest:: :skipif: _tkinter is None
>>> screen.reset()
>>> screen.setworldcoordinates(-50,-7.5,50,7.5)
>>> for _ in range(72):
... left(10)
... >>> for _ in range(8):
... left(45); fd(2) # a regular octagon | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
725bca88-7c65-4054-b794-6198e42e25a0 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,105 | supabase-export-v2 | 0bba271c678cb934 | by the :func:`register_shape` method in different ways. The application programmer has to deal with the Shape class *only* when using compound shapes like shown above!
Methods of TurtleScreen/Screen and corresponding functions
========================================================== | trusted_official_docs | CPython Docs | by the :func:`register_shape` method in different ways. The application programmer has to deal with the Shape class *only* when using compound shapes like shown above!
Methods of TurtleScreen/Screen and corresponding functions
========================================================== | by the :func:`register_shape` method in different ways. The application programmer has to deal with the Shape class *only* when using compound shapes like shown above!
Methods of TurtleScreen/Screen and corresponding functions
========================================================== | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
729879a8-70ba-46cf-b911-b85d480c7288 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,789 | supabase-export-v2 | fcfda9e39ac990e9 | If *y* is ``None``, *x* must be a pair of coordinates or a :class:`Vec2D` (e.g. as returned by :func:`pos`).
Move turtle to an absolute position. If the pen is down, draw line. Do
not change the turtle's orientation. | trusted_official_docs | CPython Docs | If *y* is ``None``, *x* must be a pair of coordinates or a :class:`Vec2D` (e.g. as returned by :func:`pos`).
Move turtle to an absolute position. If the pen is down, draw line. Do
not change the turtle's orientation. | If *y* is ``None``, *x* must be a pair of coordinates or a :class:`Vec2D` (e.g. as returned by :func:`pos`).
Move turtle to an absolute position. If the pen is down, draw line. Do
not change the turtle's orientation. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7375b24a-ab71-44ac-87fb-72d35ad44517 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,861 | supabase-export-v2 | 4744332b2ff684b9 | * "fastest": 0 * "fast": 10 * "normal": 6 * "slow": 3 * "slowest": 1
Speeds from 1 to 10 enforce increasingly faster animation of line drawing
and turtle turning. | trusted_official_docs | CPython Docs | * "fastest": 0 * "fast": 10 * "normal": 6 * "slow": 3 * "slowest": 1
Speeds from 1 to 10 enforce increasingly faster animation of line drawing
and turtle turning. | * "fastest": 0 * "fast": 10 * "normal": 6 * "slow": 3 * "slowest": 1
Speeds from 1 to 10 enforce increasingly faster animation of line drawing
and turtle turning. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
75096521-d204-415a-88de-f8ef6ad899bb | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,819 | supabase-export-v2 | 20104fe7fccfe7dd | - east 0 - north 90 - north 90 - east 180 - west 180 - south 270 - south 270 - west =================== ====================
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | - east 0 - north 90 - north 90 - east 180 - west 180 - south 270 - south 270 - west =================== ====================
.. doctest::
:skipif: _tkinter is None | - east 0 - north 90 - north 90 - east 180 - west 180 - south 270 - south 270 - west =================== ====================
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
751b8271-bb92-48e8-b327-33e26c26f396 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,796 | supabase-export-v2 | 1f2024884d700173 | :param x: a number or ``None`` :param y: a number or ``None`` :param fill_gap: a boolean
Move turtle to an absolute position. Unlike goto(x, y), a line will not
be drawn. The turtle's orientation does not change. If currently
filling, the polygon(s) teleported from will be filled after leaving,
and filling will begi... | trusted_official_docs | CPython Docs | :param x: a number or ``None`` :param y: a number or ``None`` :param fill_gap: a boolean
Move turtle to an absolute position. Unlike goto(x, y), a line will not
be drawn. The turtle's orientation does not change. If currently
filling, the polygon(s) teleported from will be filled after leaving,
and filling will begi... | :param x: a number or ``None`` :param y: a number or ``None`` :param fill_gap: a boolean
Move turtle to an absolute position. Unlike goto(x, y), a line will not
be drawn. The turtle's orientation does not change. If currently
filling, the polygon(s) teleported from will be filled after leaving,
and filling will begi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
78605050-9a4e-4553-9e36-fe78a5631b6a | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,833 | supabase-export-v2 | b805fe5d3caedd5b | (0.00,0.00) >>> turtle.heading() 0.0 >>> turtle.circle(50) >>> turtle.position() (-0.00,0.00) >>> turtle.heading() 0.0 >>> turtle.circle(120, 180) # draw a semicircle >>> turtle.position() (0.00,240.00) >>> turtle.heading() 180.0
.. function:: dot()
dot(size)
dot(color, /)
dot(size, color, /)
dot(size, r, g, b, /) | trusted_official_docs | CPython Docs | (0.00,0.00) >>> turtle.heading() 0.0 >>> turtle.circle(50) >>> turtle.position() (-0.00,0.00) >>> turtle.heading() 0.0 >>> turtle.circle(120, 180) # draw a semicircle >>> turtle.position() (0.00,240.00) >>> turtle.heading() 180.0
.. function:: dot()
dot(size)
dot(color, /)
dot(size, color, /)
dot(size, r, g, b, /) | (0.00,0.00) >>> turtle.heading() 0.0 >>> turtle.circle(50) >>> turtle.position() (-0.00,0.00) >>> turtle.heading() 0.0 >>> turtle.circle(120, 180) # draw a semicircle >>> turtle.position() (0.00,240.00) >>> turtle.heading() 180.0
.. function:: dot()
dot(size)
dot(color, /)
dot(size, color, /)
dot(size, r, g, b, /) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7976b8fe-b4dd-4689-a0d7-817969fcb90e | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,138 | supabase-export-v2 | 1c1b1197edf0bf34 | corner of canvas :param urx: a number, x-coordinate of upper right corner of canvas :param ury: a number, y-coordinate of upper right corner of canvas
Set up user-defined coordinate system and switch to mode "world" if
necessary. This performs a ``screen.reset()``. If mode "world" is already
active, all drawings are ... | trusted_official_docs | CPython Docs | corner of canvas :param urx: a number, x-coordinate of upper right corner of canvas :param ury: a number, y-coordinate of upper right corner of canvas
Set up user-defined coordinate system and switch to mode "world" if
necessary. This performs a ``screen.reset()``. If mode "world" is already
active, all drawings are ... | corner of canvas :param urx: a number, x-coordinate of upper right corner of canvas :param ury: a number, y-coordinate of upper right corner of canvas
Set up user-defined coordinate system and switch to mode "world" if
necessary. This performs a ``screen.reset()``. If mode "world" is already
active, all drawings are ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7da309a4-68e4-42c3-ab8d-7dba355be93c | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,205 | supabase-export-v2 | d07ee8d345f1e4e1 | compatible with most Logo turtle graphics. Mode "world" uses user-defined "world coordinates". **Attention**: in this mode angles appear distorted if ``x/y`` unit-ratio doesn't equal 1.
============ ========================= ===================
Mode Initial turtle heading positive angles
============ ================... | trusted_official_docs | CPython Docs | compatible with most Logo turtle graphics. Mode "world" uses user-defined "world coordinates". **Attention**: in this mode angles appear distorted if ``x/y`` unit-ratio doesn't equal 1.
============ ========================= ===================
Mode Initial turtle heading positive angles
============ ================... | compatible with most Logo turtle graphics. Mode "world" uses user-defined "world coordinates". **Attention**: in this mode angles appear distorted if ``x/y`` unit-ratio doesn't equal 1.
============ ========================= ===================
Mode Initial turtle heading positive angles
============ ================... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7e6cdb9b-a4b6-4510-99cc-65cc9393dc33 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,342 | supabase-export-v2 | 4751ba33db46f0fe | contains a :file:`turtle.cfg` file. You can study it as an example and see its effects when running the demos (preferably not from within the demo-viewer).
:mod:`!turtledemo` --- Demo scripts
=================================== | trusted_official_docs | CPython Docs | contains a :file:`turtle.cfg` file. You can study it as an example and see its effects when running the demos (preferably not from within the demo-viewer).
:mod:`!turtledemo` --- Demo scripts
=================================== | contains a :file:`turtle.cfg` file. You can study it as an example and see its effects when running the demos (preferably not from within the demo-viewer).
:mod:`!turtledemo` --- Demo scripts
=================================== | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7f5ce584-f1fb-4953-bf14-425c097d78fa | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,178 | supabase-export-v2 | a82cc2e701aa2f16 | .. function:: onclick(fun, btn=1, add=None) onscreenclick(fun, btn=1, add=None)
:param fun: a function with two arguments which will be called with the
coordinates of the clicked point on the canvas
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
:param add: ``True`` or ``False`` -- if ``Tr... | trusted_official_docs | CPython Docs | .. function:: onclick(fun, btn=1, add=None) onscreenclick(fun, btn=1, add=None)
:param fun: a function with two arguments which will be called with the
coordinates of the clicked point on the canvas
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
:param add: ``True`` or ``False`` -- if ``Tr... | .. function:: onclick(fun, btn=1, add=None) onscreenclick(fun, btn=1, add=None)
:param fun: a function with two arguments which will be called with the
coordinates of the clicked point on the canvas
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
:param add: ``True`` or ``False`` -- if ``Tr... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
80aabc2c-cb12-4d84-8de0-c89322ba26fc | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,029 | supabase-export-v2 | ab43fc07f20cdd2b | given: return the current tilt-angle, i. e. the angle between the orientation of the turtleshape and the heading of the turtle (its direction of movement).
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | given: return the current tilt-angle, i. e. the angle between the orientation of the turtleshape and the heading of the turtle (its direction of movement).
.. doctest::
:skipif: _tkinter is None | given: return the current tilt-angle, i. e. the angle between the orientation of the turtleshape and the heading of the turtle (its direction of movement).
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8238233b-2703-42a7-998b-44685ca5b542 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,839 | supabase-export-v2 | 71df59d3fbc66e0b | .. function:: stamp()
Stamp a copy of the turtle shape onto the canvas at the current turtle
position. Return a stamp_id for that stamp, which can be used to delete
it by calling ``clearstamp(stamp_id)``. | trusted_official_docs | CPython Docs | .. function:: stamp()
Stamp a copy of the turtle shape onto the canvas at the current turtle
position. Return a stamp_id for that stamp, which can be used to delete
it by calling ``clearstamp(stamp_id)``. | .. function:: stamp()
Stamp a copy of the turtle shape onto the canvas at the current turtle
position. Return a stamp_id for that stamp, which can be used to delete
it by calling ``clearstamp(stamp_id)``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
82d364a8-6983-4072-bf77-e541e7d6dd68 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,943 | supabase-export-v2 | 6daf0af00f2d2542 | *r*, *g*, and *b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, where colormode is either 1.0 or 255 (see :func:`colormode`).
``fillcolor(r, g, b)``
Set fillcolor to the RGB color represented by *r*, *g*, and *b*. Each of
*r*, *g*, and *b* must be in the range 0..colormode. | trusted_official_docs | CPython Docs | *r*, *g*, and *b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, where colormode is either 1.0 or 255 (see :func:`colormode`).
``fillcolor(r, g, b)``
Set fillcolor to the RGB color represented by *r*, *g*, and *b*. Each of
*r*, *g*, and *b* must be in the range 0..colormode. | *r*, *g*, and *b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, where colormode is either 1.0 or 255 (see :func:`colormode`).
``fillcolor(r, g, b)``
Set fillcolor to the RGB color represented by *r*, *g*, and *b*. Each of
*r*, *g*, and *b* must be in the range 0..colormode. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8360d26e-63b8-419d-928f-db1f3cc66827 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,931 | supabase-export-v2 | a34c6ca978ba0708 | ``pencolor()`` Return the current pencolor as color specification string or as a tuple (see example). May be used as input to another color/pencolor/fillcolor/bgcolor call.
``pencolor(colorstring)``
Set pencolor to *colorstring*, which is a Tk color specification string,
such as ``"red"``, ``"yellow"``, or ``"#33cc8c... | trusted_official_docs | CPython Docs | ``pencolor()`` Return the current pencolor as color specification string or as a tuple (see example). May be used as input to another color/pencolor/fillcolor/bgcolor call.
``pencolor(colorstring)``
Set pencolor to *colorstring*, which is a Tk color specification string,
such as ``"red"``, ``"yellow"``, or ``"#33cc8c... | ``pencolor()`` Return the current pencolor as color specification string or as a tuple (see example). May be used as input to another color/pencolor/fillcolor/bgcolor call.
``pencolor(colorstring)``
Set pencolor to *colorstring*, which is a Tk color specification string,
such as ``"red"``, ``"yellow"``, or ``"#33cc8c... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
843cb6a9-eec5-43ae-a915-865e042f658e | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,304 | supabase-export-v2 | 6a54261c94a57781 | public methods of the Screen and Turtle classes are documented extensively via docstrings. So these can be used as online-help via the Python help facilities:
- When using IDLE, tooltips show the signatures and first lines of the
docstrings of typed in function-/method calls. | trusted_official_docs | CPython Docs | public methods of the Screen and Turtle classes are documented extensively via docstrings. So these can be used as online-help via the Python help facilities:
- When using IDLE, tooltips show the signatures and first lines of the
docstrings of typed in function-/method calls. | public methods of the Screen and Turtle classes are documented extensively via docstrings. So these can be used as online-help via the Python help facilities:
- When using IDLE, tooltips show the signatures and first lines of the
docstrings of typed in function-/method calls. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
85330462-3b76-4bd3-8809-9a1c52e13159 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,859 | supabase-export-v2 | 7702e819f8ead40f | Set the turtle's speed to an integer value in the range 0..10. If no argument is given, return current speed.
If input is a number greater than 10 or smaller than 0.5, speed is set
to 0. Speedstrings are mapped to speedvalues as follows: | trusted_official_docs | CPython Docs | Set the turtle's speed to an integer value in the range 0..10. If no argument is given, return current speed.
If input is a number greater than 10 or smaller than 0.5, speed is set
to 0. Speedstrings are mapped to speedvalues as follows: | Set the turtle's speed to an integer value in the range 0..10. If no argument is given, return current speed.
If input is a number greater than 10 or smaller than 0.5, speed is set
to 0. Speedstrings are mapped to speedvalues as follows: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
853c5aff-6b97-43aa-99de-beb42fcb860c | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,280 | supabase-export-v2 | 11ddd2300f74c579 | :param master: some Tkinter widget to contain the ScrolledCanvas, i.e. a Tkinter-canvas with scrollbars added
Used by class Screen, which thus automatically provides a ScrolledCanvas as
playground for the turtles. | trusted_official_docs | CPython Docs | :param master: some Tkinter widget to contain the ScrolledCanvas, i.e. a Tkinter-canvas with scrollbars added
Used by class Screen, which thus automatically provides a ScrolledCanvas as
playground for the turtles. | :param master: some Tkinter widget to contain the ScrolledCanvas, i.e. a Tkinter-canvas with scrollbars added
Used by class Screen, which thus automatically provides a ScrolledCanvas as
playground for the turtles. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8541ab47-f0c3-49be-804c-da9e2905a73e | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,142 | supabase-export-v2 | fd8b5abf188308cf | >>> screen.reset() >>> screen.setworldcoordinates(-50,-7.5,50,7.5) >>> for _ in range(72): ... left(10) ... >>> for _ in range(8): ... left(45); fd(2) # a regular octagon
.. doctest::
:skipif: _tkinter is None
:hide: | trusted_official_docs | CPython Docs | >>> screen.reset() >>> screen.setworldcoordinates(-50,-7.5,50,7.5) >>> for _ in range(72): ... left(10) ... >>> for _ in range(8): ... left(45); fd(2) # a regular octagon
.. doctest::
:skipif: _tkinter is None
:hide: | >>> screen.reset() >>> screen.setworldcoordinates(-50,-7.5,50,7.5) >>> for _ in range(72): ... left(10) ... >>> for _ in range(8): ... left(45); fd(2) # a regular octagon
.. doctest::
:skipif: _tkinter is None
:hide: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8634787e-76e0-4c5f-b071-a367176cb403 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,260 | supabase-export-v2 | 675a61792918e36f | starty: if positive, starting position in pixels from the top edge of the screen, if negative from the bottom edge, if ``None``, center window vertically
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | starty: if positive, starting position in pixels from the top edge of the screen, if negative from the bottom edge, if ``None``, center window vertically
.. doctest::
:skipif: _tkinter is None | starty: if positive, starting position in pixels from the top edge of the screen, if negative from the bottom edge, if ``None``, center window vertically
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8c3f0f69-76c4-4195-9892-f3ae9b85a888 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,725 | supabase-export-v2 | d4f1ee16d654df7e | script. The script will now wait to be dismissed and will not exit until it is terminated, for example by closing the turtle graphics window.
Use object-oriented turtle graphics
----------------------------------- | trusted_official_docs | CPython Docs | script. The script will now wait to be dismissed and will not exit until it is terminated, for example by closing the turtle graphics window.
Use object-oriented turtle graphics
----------------------------------- | script. The script will now wait to be dismissed and will not exit until it is terminated, for example by closing the turtle graphics window.
Use object-oriented turtle graphics
----------------------------------- | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8e32661b-344d-438f-aa00-ad63f295eba2 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,361 | supabase-export-v2 | 58fdd8207b524d54 | is now available for transforming turtle shapes. :func:`tiltangle` has been enhanced in functionality: it now can be used to get or set the tilt angle.
- The :class:`Screen` method :func:`onkeypress` has been added as a complement to
:func:`onkey`. As the latter binds actions to the key release event,
an alias: :func... | trusted_official_docs | CPython Docs | is now available for transforming turtle shapes. :func:`tiltangle` has been enhanced in functionality: it now can be used to get or set the tilt angle.
- The :class:`Screen` method :func:`onkeypress` has been added as a complement to
:func:`onkey`. As the latter binds actions to the key release event,
an alias: :func... | is now available for transforming turtle shapes. :func:`tiltangle` has been enhanced in functionality: it now can be used to get or set the tilt angle.
- The :class:`Screen` method :func:`onkeypress` has been added as a complement to
:func:`onkey`. As the latter binds actions to the key release event,
an alias: :func... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8f7ff32a-f1c9-469b-b17a-550015f37d4b | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,920 | supabase-export-v2 | 3bd0aab094bec431 | pen-state. Moreover one or more of these attributes can be provided as keyword-arguments. This can be used to set several pen attributes in one statement.
.. doctest::
:skipif: _tkinter is None
:options: +NORMALIZE_WHITESPACE | trusted_official_docs | CPython Docs | pen-state. Moreover one or more of these attributes can be provided as keyword-arguments. This can be used to set several pen attributes in one statement.
.. doctest::
:skipif: _tkinter is None
:options: +NORMALIZE_WHITESPACE | pen-state. Moreover one or more of these attributes can be provided as keyword-arguments. This can be used to set several pen attributes in one statement.
.. doctest::
:skipif: _tkinter is None
:options: +NORMALIZE_WHITESPACE | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9248533c-63c1-49b2-beb0-b8acbda4f14d | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,229 | supabase-export-v2 | d5589416b13c6956 | .. note:: Image shapes *do not* rotate when turning the turtle, so they do not display the heading of the turtle!
(3) *name* is an arbitrary string and *shape* is a tuple of pairs of
coordinates: Install the corresponding polygon shape. | trusted_official_docs | CPython Docs | .. note:: Image shapes *do not* rotate when turning the turtle, so they do not display the heading of the turtle!
(3) *name* is an arbitrary string and *shape* is a tuple of pairs of
coordinates: Install the corresponding polygon shape. | .. note:: Image shapes *do not* rotate when turning the turtle, so they do not display the heading of the turtle!
(3) *name* is an arbitrary string and *shape* is a tuple of pairs of
coordinates: Install the corresponding polygon shape. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
92984ab1-1db9-4239-89d3-41dd12bc656f | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,754 | supabase-export-v2 | a3326445bddd1162 | Animation control | :func:`no_animation` | :func:`delay` | :func:`tracer` | :func:`update`
Using screen events
| :func:`listen`
| :func:`onkey` | :func:`onkeyrelease`
| :func:`onkeypress`
| :func:`onclick` | :func:`onscreenclick`
| :func:`ontimer`
| :func:`mainloop` | :func:`done` | trusted_official_docs | CPython Docs | Animation control | :func:`no_animation` | :func:`delay` | :func:`tracer` | :func:`update`
Using screen events
| :func:`listen`
| :func:`onkey` | :func:`onkeyrelease`
| :func:`onkeypress`
| :func:`onclick` | :func:`onscreenclick`
| :func:`ontimer`
| :func:`mainloop` | :func:`done` | Animation control | :func:`no_animation` | :func:`delay` | :func:`tracer` | :func:`update`
Using screen events
| :func:`listen`
| :func:`onkey` | :func:`onkeyrelease`
| :func:`onkeypress`
| :func:`onclick` | :func:`onscreenclick`
| :func:`ontimer`
| :func:`mainloop` | :func:`done` | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
94b454c7-254c-4dd6-856d-9616295ac737 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,932 | supabase-export-v2 | 5f9a7c80ff1ec5a2 | ``pencolor(colorstring)`` Set pencolor to *colorstring*, which is a Tk color specification string, such as ``"red"``, ``"yellow"``, or ``"#33cc8c"``.
``pencolor((r, g, b))``
Set pencolor to the RGB color represented by the tuple of *r*, *g*, and
*b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, where
... | trusted_official_docs | CPython Docs | ``pencolor(colorstring)`` Set pencolor to *colorstring*, which is a Tk color specification string, such as ``"red"``, ``"yellow"``, or ``"#33cc8c"``.
``pencolor((r, g, b))``
Set pencolor to the RGB color represented by the tuple of *r*, *g*, and
*b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, where
... | ``pencolor(colorstring)`` Set pencolor to *colorstring*, which is a Tk color specification string, such as ``"red"``, ``"yellow"``, or ``"#33cc8c"``.
``pencolor((r, g, b))``
Set pencolor to the RGB color represented by the tuple of *r*, *g*, and
*b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, where
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
96c87ea9-c86f-422a-8103-38e081920f31 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,933 | supabase-export-v2 | 213aed13c05cb30f | *r*, *g*, and *b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, where colormode is either 1.0 or 255 (see :func:`colormode`).
``pencolor(r, g, b)``
Set pencolor to the RGB color represented by *r*, *g*, and *b*. Each of
*r*, *g*, and *b* must be in the range 0..colormode. | trusted_official_docs | CPython Docs | *r*, *g*, and *b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, where colormode is either 1.0 or 255 (see :func:`colormode`).
``pencolor(r, g, b)``
Set pencolor to the RGB color represented by *r*, *g*, and *b*. Each of
*r*, *g*, and *b* must be in the range 0..colormode. | *r*, *g*, and *b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, where colormode is either 1.0 or 255 (see :func:`colormode`).
``pencolor(r, g, b)``
Set pencolor to the RGB color represented by *r*, *g*, and *b*. Each of
*r*, *g*, and *b* must be in the range 0..colormode. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
98c40069-1763-475c-80a4-bc4ef06bc572 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,359 | supabase-export-v2 | 640f1589aa371b96 | a boolean value: ``True`` if a filling process is under way, ``False`` otherwise. This behaviour corresponds to a ``fill()`` call without arguments in Python 2.6.
Changes since Python 3.0
======================== | trusted_official_docs | CPython Docs | a boolean value: ``True`` if a filling process is under way, ``False`` otherwise. This behaviour corresponds to a ``fill()`` call without arguments in Python 2.6.
Changes since Python 3.0
======================== | a boolean value: ``True`` if a filling process is under way, ``False`` otherwise. This behaviour corresponds to a ``fill()`` call without arguments in Python 2.6.
Changes since Python 3.0
======================== | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9a3538e0-6845-4a18-9c92-502ceb654115 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,045 | supabase-export-v2 | 70995bc89ee9d2df | Bind *fun* to mouse-click events on this turtle. If *fun* is ``None``, existing bindings are removed. Example for the anonymous turtle, i.e. the procedural way:
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | Bind *fun* to mouse-click events on this turtle. If *fun* is ``None``, existing bindings are removed. Example for the anonymous turtle, i.e. the procedural way:
.. doctest::
:skipif: _tkinter is None | Bind *fun* to mouse-click events on this turtle. If *fun* is ``None``, existing bindings are removed. Example for the anonymous turtle, i.e. the procedural way:
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9bcf419c-4c4e-4cd1-84f1-7f54ac7e2417 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,055 | supabase-export-v2 | 9b29417c7bfbb429 | Bind *fun* to mouse-move events on this turtle. If *fun* is ``None``, existing bindings are removed.
Remark: Every sequence of mouse-move-events on a turtle is preceded by a
mouse-click event on that turtle. | trusted_official_docs | CPython Docs | Bind *fun* to mouse-move events on this turtle. If *fun* is ``None``, existing bindings are removed.
Remark: Every sequence of mouse-move-events on a turtle is preceded by a
mouse-click event on that turtle. | Bind *fun* to mouse-move events on this turtle. If *fun* is ``None``, existing bindings are removed.
Remark: Every sequence of mouse-move-events on a turtle is preceded by a
mouse-click event on that turtle. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9f1b8c58-efe1-424d-b81d-640201f43644 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,047 | supabase-export-v2 | 99e379c1d2bca36e | >>> def turn(x, y): ... left(180) ... >>> onclick(turn) # Now clicking into the turtle will turn it. >>> onclick(None) # event-binding will be removed
.. function:: onrelease(fun, btn=1, add=None) | trusted_official_docs | CPython Docs | >>> def turn(x, y): ... left(180) ... >>> onclick(turn) # Now clicking into the turtle will turn it. >>> onclick(None) # event-binding will be removed
.. function:: onrelease(fun, btn=1, add=None) | >>> def turn(x, y): ... left(180) ... >>> onclick(turn) # Now clicking into the turtle will turn it. >>> onclick(None) # event-binding will be removed
.. function:: onrelease(fun, btn=1, add=None) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a51988fb-06fc-4c81-bb9b-d7cec4b96f78 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,175 | supabase-export-v2 | 0ee51a570647348c | or to any key-press-event if no key is given. Remark: in order to be able to register key-events, TurtleScreen must have focus. (See method :func:`listen`.)
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | or to any key-press-event if no key is given. Remark: in order to be able to register key-events, TurtleScreen must have focus. (See method :func:`listen`.)
.. doctest::
:skipif: _tkinter is None | or to any key-press-event if no key is given. Remark: in order to be able to register key-events, TurtleScreen must have focus. (See method :func:`listen`.)
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a5a2052e-9041-46e8-ad7f-3acc0092f596 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,303 | supabase-export-v2 | 93ec83f86cf7154f | How to use help ---------------
The public methods of the Screen and Turtle classes are documented extensively
via docstrings. So these can be used as online-help via the Python help
facilities: | trusted_official_docs | CPython Docs | How to use help ---------------
The public methods of the Screen and Turtle classes are documented extensively
via docstrings. So these can be used as online-help via the Python help
facilities: | How to use help ---------------
The public methods of the Screen and Turtle classes are documented extensively
via docstrings. So these can be used as online-help via the Python help
facilities: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a63058f5-cf17-4562-9cea-4cb1095b6b5c | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,951 | supabase-export-v2 | 4f0ea39f6bd4e7b0 | ``color()`` Return the current pencolor and the current fillcolor as a pair of color specification strings or tuples as returned by :func:`pencolor` and :func:`fillcolor`.
``color(colorstring)``, ``color((r,g,b))``, ``color(r,g,b)``
Inputs as in :func:`pencolor`, set both, fillcolor and pencolor, to the
given value. | trusted_official_docs | CPython Docs | ``color()`` Return the current pencolor and the current fillcolor as a pair of color specification strings or tuples as returned by :func:`pencolor` and :func:`fillcolor`.
``color(colorstring)``, ``color((r,g,b))``, ``color(r,g,b)``
Inputs as in :func:`pencolor`, set both, fillcolor and pencolor, to the
given value. | ``color()`` Return the current pencolor and the current fillcolor as a pair of color specification strings or tuples as returned by :func:`pencolor` and :func:`fillcolor`.
``color(colorstring)``, ``color((r,g,b))``, ``color(r,g,b)``
Inputs as in :func:`pencolor`, set both, fillcolor and pencolor, to the
given value. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a7be685c-061f-42e4-b17c-33b60fd769f5 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,983 | supabase-export-v2 | b37cb7fb78d13a45 | .. function:: clear()
Delete the turtle's drawings from the screen. Do not move turtle. State and
position of the turtle as well as drawings of other turtles are not affected. | trusted_official_docs | CPython Docs | .. function:: clear()
Delete the turtle's drawings from the screen. Do not move turtle. State and
position of the turtle as well as drawings of other turtles are not affected. | .. function:: clear()
Delete the turtle's drawings from the screen. Do not move turtle. State and
position of the turtle as well as drawings of other turtles are not affected. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a83a50a6-1775-4290-84f5-3e01414d8f73 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,946 | supabase-export-v2 | 9fcad36987d4a857 | .. doctest:: :skipif: _tkinter is None
>>> turtle.fillcolor("violet")
>>> turtle.fillcolor()
'violet'
>>> turtle.pencolor()
(50.0, 193.0, 143.0)
>>> turtle.fillcolor((50, 193, 143)) # Integers, not floats
>>> turtle.fillcolor()
(50.0, 193.0, 143.0)
>>> turtle.fillcolor('#ffffff')
>>> turtle.fillcolor()
(255.0... | trusted_official_docs | CPython Docs | .. doctest:: :skipif: _tkinter is None
>>> turtle.fillcolor("violet")
>>> turtle.fillcolor()
'violet'
>>> turtle.pencolor()
(50.0, 193.0, 143.0)
>>> turtle.fillcolor((50, 193, 143)) # Integers, not floats
>>> turtle.fillcolor()
(50.0, 193.0, 143.0)
>>> turtle.fillcolor('#ffffff')
>>> turtle.fillcolor()
(255.0... | .. doctest:: :skipif: _tkinter is None
>>> turtle.fillcolor("violet")
>>> turtle.fillcolor()
'violet'
>>> turtle.pencolor()
(50.0, 193.0, 143.0)
>>> turtle.fillcolor((50, 193, 143)) # Integers, not floats
>>> turtle.fillcolor()
(50.0, 193.0, 143.0)
>>> turtle.fillcolor('#ffffff')
>>> turtle.fillcolor()
(255.0... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a96363c4-13f4-4003-9232-26d5d0733dff | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,774 | supabase-export-v2 | 0b105d3050aaec0b | :param angle: a number (integer or float)
Turn turtle right by *angle* units. (Units are by default degrees, but
can be set via the :func:`degrees` and :func:`radians` functions.) Angle
orientation depends on the turtle mode, see :func:`mode`. | trusted_official_docs | CPython Docs | :param angle: a number (integer or float)
Turn turtle right by *angle* units. (Units are by default degrees, but
can be set via the :func:`degrees` and :func:`radians` functions.) Angle
orientation depends on the turtle mode, see :func:`mode`. | :param angle: a number (integer or float)
Turn turtle right by *angle* units. (Units are by default degrees, but
can be set via the :func:`degrees` and :func:`radians` functions.) Angle
orientation depends on the turtle mode, see :func:`mode`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a9e1dc79-7858-4318-a745-113eef0966dd | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,705 | supabase-export-v2 | e5598f015cd47c4e | available from simple commands - it's an excellent way to introduce children to programming ideas, with a minimum of overhead (not just children, of course).
The turtle module makes this possible by exposing all its basic functionality
as functions, available with ``from turtle import *``. The :ref:`turtle
graphics tut... | trusted_official_docs | CPython Docs | available from simple commands - it's an excellent way to introduce children to programming ideas, with a minimum of overhead (not just children, of course).
The turtle module makes this possible by exposing all its basic functionality
as functions, available with ``from turtle import *``. The :ref:`turtle
graphics tut... | available from simple commands - it's an excellent way to introduce children to programming ideas, with a minimum of overhead (not just children, of course).
The turtle module makes this possible by exposing all its basic functionality
as functions, available with ``from turtle import *``. The :ref:`turtle
graphics tut... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
aab5291f-5999-43a7-8349-8e84e75c3290 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,353 | supabase-export-v2 | 3914c6170db90e6f | classical nim game | turtles as nimsticks, | | | with three heaps of sticks | event driven (mouse, | | | against the computer.
| keyboard) |
+------------------------+------------------------------+--------------------------------------+
| ``paint`` | super minimalistic | :func:`onclick` |
| | drawing program | |
+----... | trusted_official_docs | CPython Docs | classical nim game | turtles as nimsticks, | | | with three heaps of sticks | event driven (mouse, | | | against the computer.
| keyboard) |
+------------------------+------------------------------+--------------------------------------+
| ``paint`` | super minimalistic | :func:`onclick` |
| | drawing program | |
+----... | classical nim game | turtles as nimsticks, | | | with three heaps of sticks | event driven (mouse, | | | against the computer.
| keyboard) |
+------------------------+------------------------------+--------------------------------------+
| ``paint`` | super minimalistic | :func:`onclick` |
| | drawing program | |
+----... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ab7475ed-7806-4139-9ca0-848b55430a66 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,028 | supabase-export-v2 | 0563c7790bc23b4d | :param angle: a number (optional)
Set or return the current tilt-angle. If angle is given, rotate the
turtleshape to point in the direction specified by angle,
regardless of its current tilt-angle. Do *not* change the turtle's
heading (direction of movement). If angle is not given: return the current tilt-angle, i. ... | trusted_official_docs | CPython Docs | :param angle: a number (optional)
Set or return the current tilt-angle. If angle is given, rotate the
turtleshape to point in the direction specified by angle,
regardless of its current tilt-angle. Do *not* change the turtle's
heading (direction of movement). If angle is not given: return the current tilt-angle, i. ... | :param angle: a number (optional)
Set or return the current tilt-angle. If angle is given, rotate the
turtleshape to point in the direction specified by angle,
regardless of its current tilt-angle. Do *not* change the turtle's
heading (direction of movement). If angle is not given: return the current tilt-angle, i. ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
abb4869b-aa2c-4d08-89c0-845033373a54 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,975 | supabase-export-v2 | cf20da4b2a41aadb | system graphics, type of overlap, and number of overlaps. For example, the Turtle star above may be either all yellow or have some white regions.
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | system graphics, type of overlap, and number of overlaps. For example, the Turtle star above may be either all yellow or have some white regions.
.. doctest::
:skipif: _tkinter is None | system graphics, type of overlap, and number of overlaps. For example, the Turtle star above may be either all yellow or have some white regions.
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
abc496b6-7420-48dc-a86e-1b80dbc3cb9c | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,849 | supabase-export-v2 | 9ba1da1724d574d7 | :param n: an integer (or ``None``)
Delete all or first/last *n* of turtle's stamps. If *n* is ``None``, delete
all stamps, if *n* > 0 delete first *n* stamps, else if *n* < 0 delete
last *n* stamps. | trusted_official_docs | CPython Docs | :param n: an integer (or ``None``)
Delete all or first/last *n* of turtle's stamps. If *n* is ``None``, delete
all stamps, if *n* > 0 delete first *n* stamps, else if *n* < 0 delete
last *n* stamps. | :param n: an integer (or ``None``)
Delete all or first/last *n* of turtle's stamps. If *n* is ``None``, delete
all stamps, if *n* > 0 delete first *n* stamps, else if *n* < 0 delete
last *n* stamps. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ac112bd8-0ac7-4860-a57f-5c5b016444c3 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,942 | supabase-export-v2 | 56f137cdd3c76f90 | ``fillcolor(colorstring)`` Set fillcolor to *colorstring*, which is a Tk color specification string, such as ``"red"``, ``"yellow"``, or ``"#33cc8c"``.
``fillcolor((r, g, b))``
Set fillcolor to the RGB color represented by the tuple of *r*, *g*, and
*b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, wh... | trusted_official_docs | CPython Docs | ``fillcolor(colorstring)`` Set fillcolor to *colorstring*, which is a Tk color specification string, such as ``"red"``, ``"yellow"``, or ``"#33cc8c"``.
``fillcolor((r, g, b))``
Set fillcolor to the RGB color represented by the tuple of *r*, *g*, and
*b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, wh... | ``fillcolor(colorstring)`` Set fillcolor to *colorstring*, which is a Tk color specification string, such as ``"red"``, ``"yellow"``, or ``"#33cc8c"``.
``fillcolor((r, g, b))``
Set fillcolor to the RGB color represented by the tuple of *r*, *g*, and
*b*. Each of *r*, *g*, and *b* must be in the range 0..colormode, wh... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ac3e5d00-2d38-4045-a9e2-e1c117e8288b | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,159 | supabase-export-v2 | 77be6aa1e56e1024 | to accelerate the drawing of complex graphics.) When called without arguments, returns the currently stored value of n. Second argument sets delay value (see :func:`delay`).
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | to accelerate the drawing of complex graphics.) When called without arguments, returns the currently stored value of n. Second argument sets delay value (see :func:`delay`).
.. doctest::
:skipif: _tkinter is None | to accelerate the drawing of complex graphics.) When called without arguments, returns the currently stored value of n. Second argument sets delay value (see :func:`delay`).
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
acf27360-2997-4121-b282-df466e30201b | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,204 | supabase-export-v2 | 0d55a537e103d066 | Set turtle mode ("standard", "logo" or "world") and perform reset. If mode is not given, current mode is returned.
Mode "standard" is compatible with old :mod:`!turtle`. Mode "logo" is
compatible with most Logo turtle graphics. Mode "world" uses user-defined
"world coordinates". **Attention**: in this mode angles app... | trusted_official_docs | CPython Docs | Set turtle mode ("standard", "logo" or "world") and perform reset. If mode is not given, current mode is returned.
Mode "standard" is compatible with old :mod:`!turtle`. Mode "logo" is
compatible with most Logo turtle graphics. Mode "world" uses user-defined
"world coordinates". **Attention**: in this mode angles app... | Set turtle mode ("standard", "logo" or "world") and perform reset. If mode is not given, current mode is returned.
Mode "standard" is compatible with old :mod:`!turtle`. Mode "logo" is
compatible with most Logo turtle graphics. Mode "world" uses user-defined
"world coordinates". **Attention**: in this mode angles app... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ad03d2e2-884f-43b7-9380-72b28ee37451 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,349 | supabase-export-v2 | f5ea33ba4c7ae533 | The :mod:`!turtledemo` package directory contains:
- A demo viewer :file:`__main__.py` which can be used to view the sourcecode
of the scripts and run them at the same time. - Multiple scripts demonstrating different features of the :mod:`!turtle`
module. Examples can be accessed via the Examples menu. They can also
... | trusted_official_docs | CPython Docs | The :mod:`!turtledemo` package directory contains:
- A demo viewer :file:`__main__.py` which can be used to view the sourcecode
of the scripts and run them at the same time. - Multiple scripts demonstrating different features of the :mod:`!turtle`
module. Examples can be accessed via the Examples menu. They can also
... | The :mod:`!turtledemo` package directory contains:
- A demo viewer :file:`__main__.py` which can be used to view the sourcecode
of the scripts and run them at the same time. - Multiple scripts demonstrating different features of the :mod:`!turtle`
module. Examples can be accessed via the Examples menu. They can also
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
adddb8c1-3542-4499-91ec-1999d0bb9dbb | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,008 | supabase-export-v2 | 294c4ef24782a60b | Set resizemode to one of the values: "auto", "user", "noresize". If *rmode* is not given, return current resizemode. Different resizemodes have the following effects:
- "auto": adapts the appearance of the turtle corresponding to the value of pensize. - "user": adapts the appearance of the turtle according to the value... | trusted_official_docs | CPython Docs | Set resizemode to one of the values: "auto", "user", "noresize". If *rmode* is not given, return current resizemode. Different resizemodes have the following effects:
- "auto": adapts the appearance of the turtle corresponding to the value of pensize. - "user": adapts the appearance of the turtle according to the value... | Set resizemode to one of the values: "auto", "user", "noresize". If *rmode* is not given, return current resizemode. Different resizemodes have the following effects:
- "auto": adapts the appearance of the turtle corresponding to the value of pensize. - "user": adapts the appearance of the turtle according to the value... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
af657b98-5573-43dd-a39e-3829d4835eb8 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,788 | supabase-export-v2 | b9654aa64e135e0d | :param x: a number or a pair/vector of numbers :param y: a number or ``None``
If *y* is ``None``, *x* must be a pair of coordinates or a :class:`Vec2D`
(e.g. as returned by :func:`pos`). | trusted_official_docs | CPython Docs | :param x: a number or a pair/vector of numbers :param y: a number or ``None``
If *y* is ``None``, *x* must be a pair of coordinates or a :class:`Vec2D`
(e.g. as returned by :func:`pos`). | :param x: a number or a pair/vector of numbers :param y: a number or ``None``
If *y* is ``None``, *x* must be a pair of coordinates or a :class:`Vec2D`
(e.g. as returned by :func:`pos`). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
aff0d3e4-7792-458a-9ea5-1629e196bc73 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,009 | supabase-export-v2 | 0ef129fc7c5b7710 | turtle according to the values of stretchfactor and outlinewidth (outline), which are set by :func:`shapesize`. - "noresize": no adaption of the turtle's appearance takes place.
``resizemode("user")`` is called by :func:`shapesize` when used with arguments. | trusted_official_docs | CPython Docs | turtle according to the values of stretchfactor and outlinewidth (outline), which are set by :func:`shapesize`. - "noresize": no adaption of the turtle's appearance takes place.
``resizemode("user")`` is called by :func:`shapesize` when used with arguments. | turtle according to the values of stretchfactor and outlinewidth (outline), which are set by :func:`shapesize`. - "noresize": no adaption of the turtle's appearance takes place.
``resizemode("user")`` is called by :func:`shapesize` when used with arguments. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b00ecac3-10e6-4340-9456-17731d735b04 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,046 | supabase-export-v2 | 518a48e6ce2b8ac9 | .. doctest:: :skipif: _tkinter is None
>>> def turn(x, y):
... left(180)
... >>> onclick(turn) # Now clicking into the turtle will turn it. >>> onclick(None) # event-binding will be removed | trusted_official_docs | CPython Docs | .. doctest:: :skipif: _tkinter is None
>>> def turn(x, y):
... left(180)
... >>> onclick(turn) # Now clicking into the turtle will turn it. >>> onclick(None) # event-binding will be removed | .. doctest:: :skipif: _tkinter is None
>>> def turn(x, y):
... left(180)
... >>> onclick(turn) # Now clicking into the turtle will turn it. >>> onclick(None) # event-binding will be removed | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b1170085-19ef-4f6e-85fe-44221e671198 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,096 | supabase-export-v2 | a0f72e04cdc89eaa | To use compound turtle shapes, which consist of several polygons of different color, you must use the helper class :class:`Shape` explicitly as described below:
1. Create an empty Shape object of type "compound". 2. Add as many components to this object as desired, using the
:meth:`~Shape.addcomponent` method. | trusted_official_docs | CPython Docs | To use compound turtle shapes, which consist of several polygons of different color, you must use the helper class :class:`Shape` explicitly as described below:
1. Create an empty Shape object of type "compound". 2. Add as many components to this object as desired, using the
:meth:`~Shape.addcomponent` method. | To use compound turtle shapes, which consist of several polygons of different color, you must use the helper class :class:`Shape` explicitly as described below:
1. Create an empty Shape object of type "compound". 2. Add as many components to this object as desired, using the
:meth:`~Shape.addcomponent` method. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b11cd33b-d2a5-45b5-bf9b-a1cd6afdb221 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,711 | supabase-export-v2 | cbdec38e8db46bc1 | with Python 3.14, you can use the :func:`fill` :term:`context manager` instead of :func:`begin_fill` and :func:`end_fill` to automatically begin and end fill. Here is an example::
with fill():
for i in range(4):
forward(100)
right(90) | trusted_official_docs | CPython Docs | with Python 3.14, you can use the :func:`fill` :term:`context manager` instead of :func:`begin_fill` and :func:`end_fill` to automatically begin and end fill. Here is an example::
with fill():
for i in range(4):
forward(100)
right(90) | with Python 3.14, you can use the :func:`fill` :term:`context manager` instead of :func:`begin_fill` and :func:`end_fill` to automatically begin and end fill. Here is an example::
with fill():
for i in range(4):
forward(100)
right(90) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b3aed639-23a5-4dd9-957e-7db1578106a6 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,195 | supabase-export-v2 | 929705ee7509e3a6 | the dialog window, prompt is a text mostly describing what information to input. Return the string input. If the dialog is canceled, return ``None``. ::
>>> screen.textinput("NIM", "Name of first player:") | trusted_official_docs | CPython Docs | the dialog window, prompt is a text mostly describing what information to input. Return the string input. If the dialog is canceled, return ``None``. ::
>>> screen.textinput("NIM", "Name of first player:") | the dialog window, prompt is a text mostly describing what information to input. Return the string input. If the dialog is canceled, return ``None``. ::
>>> screen.textinput("NIM", "Name of first player:") | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b4f4f843-d57f-4189-9622-efebd4af8e48 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,918 | supabase-export-v2 | 4ed8d6696336a754 | Return or set the pen's attributes in a "pen-dictionary" with the following key/value pairs:
* "shown": True/False
* "pendown": True/False
* "pencolor": color-string or color-tuple
* "fillcolor": color-string or color-tuple
* "pensize": positive number
* "speed": number in range 0..10
* "resizemode": "auto" or "u... | trusted_official_docs | CPython Docs | Return or set the pen's attributes in a "pen-dictionary" with the following key/value pairs:
* "shown": True/False
* "pendown": True/False
* "pencolor": color-string or color-tuple
* "fillcolor": color-string or color-tuple
* "pensize": positive number
* "speed": number in range 0..10
* "resizemode": "auto" or "u... | Return or set the pen's attributes in a "pen-dictionary" with the following key/value pairs:
* "shown": True/False
* "pendown": True/False
* "pencolor": color-string or color-tuple
* "fillcolor": color-string or color-tuple
* "pensize": positive number
* "speed": number in range 0..10
* "resizemode": "auto" or "u... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b53720c7-62b2-4178-b3d9-b258bf3edd42 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,952 | supabase-export-v2 | a7012c025961d0a0 | ``color(colorstring)``, ``color((r,g,b))``, ``color(r,g,b)`` Inputs as in :func:`pencolor`, set both, fillcolor and pencolor, to the given value.
``color(colorstring1, colorstring2)``, ``color((r1,g1,b1), (r2,g2,b2))``
Equivalent to ``pencolor(colorstring1)`` and ``fillcolor(colorstring2)``
and analogously if the oth... | trusted_official_docs | CPython Docs | ``color(colorstring)``, ``color((r,g,b))``, ``color(r,g,b)`` Inputs as in :func:`pencolor`, set both, fillcolor and pencolor, to the given value.
``color(colorstring1, colorstring2)``, ``color((r1,g1,b1), (r2,g2,b2))``
Equivalent to ``pencolor(colorstring1)`` and ``fillcolor(colorstring2)``
and analogously if the oth... | ``color(colorstring)``, ``color((r,g,b))``, ``color(r,g,b)`` Inputs as in :func:`pencolor`, set both, fillcolor and pencolor, to the given value.
``color(colorstring1, colorstring2)``, ``color((r1,g1,b1), (r2,g2,b2))``
Equivalent to ``pencolor(colorstring1)`` and ``fillcolor(colorstring2)``
and analogously if the oth... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b59d8b69-912d-4afa-9dca-6305e4a53aad | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,729 | supabase-export-v2 | 78fbbddc830d484b | of objects (mostly of ``Turtle`` objects). You *can* use the object-oriented approach in the shell, but it would be more typical in a Python script.
The example above then becomes:: | trusted_official_docs | CPython Docs | of objects (mostly of ``Turtle`` objects). You *can* use the object-oriented approach in the shell, but it would be more typical in a Python script.
The example above then becomes:: | of objects (mostly of ``Turtle`` objects). You *can* use the object-oriented approach in the shell, but it would be more typical in a Python script.
The example above then becomes:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b628966a-2623-4b61-93de-57efcd91918d | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,659 | supabase-export-v2 | 352f9e28c17c43ec | Get started ===========
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the
command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the
direction it is facing, drawing a line as it moves. Give it the command
``turtle.right(25)``, and it rotates in-place 2... | trusted_official_docs | CPython Docs | Get started ===========
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the
command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the
direction it is facing, drawing a line as it moves. Give it the command
``turtle.right(25)``, and it rotates in-place 2... | Get started ===========
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the
command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the
direction it is facing, drawing a line as it moves. Give it the command
``turtle.right(25)``, and it rotates in-place 2... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b79b4f19-9a58-42c6-ab08-5f3e16f7facb | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,054 | supabase-export-v2 | 1e4858a778b91859 | 1 (left mouse button) :param add: ``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise it will replace a former binding
Bind *fun* to mouse-move events on this turtle. If *fun* is ``None``,
existing bindings are removed. | trusted_official_docs | CPython Docs | 1 (left mouse button) :param add: ``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise it will replace a former binding
Bind *fun* to mouse-move events on this turtle. If *fun* is ``None``,
existing bindings are removed. | 1 (left mouse button) :param add: ``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise it will replace a former binding
Bind *fun* to mouse-move events on this turtle. If *fun* is ``None``,
existing bindings are removed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b80616d4-4579-4dbe-9c10-95e2961e69bc | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,285 | supabase-export-v2 | 7442293452edbc0e | coordinates "image" an image (in this form only used internally!) "compound" ``None`` (a compound shape has to be constructed using the :meth:`addcomponent` method) =========== ===========
.. method:: addcomponent(poly, fill, outline=None) | trusted_official_docs | CPython Docs | coordinates "image" an image (in this form only used internally!) "compound" ``None`` (a compound shape has to be constructed using the :meth:`addcomponent` method) =========== ===========
.. method:: addcomponent(poly, fill, outline=None) | coordinates "image" an image (in this form only used internally!) "compound" ``None`` (a compound shape has to be constructed using the :meth:`addcomponent` method) =========== ===========
.. method:: addcomponent(poly, fill, outline=None) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b83e1e9b-0635-4563-8f63-0736d1cf730f | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,743 | supabase-export-v2 | 4f73d8a8596bf928 | Setting and measurement | :func:`degrees` | :func:`radians`
Pen control
Drawing state
| :func:`pendown` | :func:`pd` | :func:`down`
| :func:`penup` | :func:`pu` | :func:`up`
| :func:`pensize` | :func:`width`
| :func:`pen`
| :func:`isdown` | trusted_official_docs | CPython Docs | Setting and measurement | :func:`degrees` | :func:`radians`
Pen control
Drawing state
| :func:`pendown` | :func:`pd` | :func:`down`
| :func:`penup` | :func:`pu` | :func:`up`
| :func:`pensize` | :func:`width`
| :func:`pen`
| :func:`isdown` | Setting and measurement | :func:`degrees` | :func:`radians`
Pen control
Drawing state
| :func:`pendown` | :func:`pd` | :func:`down`
| :func:`penup` | :func:`pu` | :func:`up`
| :func:`pensize` | :func:`width`
| :func:`pen`
| :func:`isdown` | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b84ce83a-88ed-48ab-9b7e-3b63b0ed0ef7 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,990 | supabase-export-v2 | 4ebc9c20a04f8039 | .. function:: hideturtle() ht()
Make the turtle invisible. It's a good idea to do this while you're in the
middle of doing some complex drawing, because hiding the turtle speeds up the
drawing observably. | trusted_official_docs | CPython Docs | .. function:: hideturtle() ht()
Make the turtle invisible. It's a good idea to do this while you're in the
middle of doing some complex drawing, because hiding the turtle speeds up the
drawing observably. | .. function:: hideturtle() ht()
Make the turtle invisible. It's a good idea to do this while you're in the
middle of doing some complex drawing, because hiding the turtle speeds up the
drawing observably. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b88706be-9074-45f3-a618-a05645862ba0 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,912 | supabase-export-v2 | d2aad8a8113e9fbd | :param width: a positive number
Set the line thickness to *width* or return it. If resizemode is set to
"auto" and turtleshape is a polygon, that polygon is drawn with the same line
thickness. If no argument is given, the current pensize is returned. | trusted_official_docs | CPython Docs | :param width: a positive number
Set the line thickness to *width* or return it. If resizemode is set to
"auto" and turtleshape is a polygon, that polygon is drawn with the same line
thickness. If no argument is given, the current pensize is returned. | :param width: a positive number
Set the line thickness to *width* or return it. If resizemode is set to
"auto" and turtleshape is a polygon, that polygon is drawn with the same line
thickness. If no argument is given, the current pensize is returned. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b8f5489c-349f-46d6-8ff3-34b5d3c16407 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,333 | supabase-export-v2 | 7a9f635131ac950f | The built-in default configuration mimics the appearance and behaviour of the old turtle module in order to retain best possible compatibility with it.
If you want to use a different configuration which better reflects the features
of this module or which better fits to your needs, e.g. for use in a classroom,
you can ... | trusted_official_docs | CPython Docs | The built-in default configuration mimics the appearance and behaviour of the old turtle module in order to retain best possible compatibility with it.
If you want to use a different configuration which better reflects the features
of this module or which better fits to your needs, e.g. for use in a classroom,
you can ... | The built-in default configuration mimics the appearance and behaviour of the old turtle module in order to retain best possible compatibility with it.
If you want to use a different configuration which better reflects the features
of this module or which better fits to your needs, e.g. for use in a classroom,
you can ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b90bff2f-3f73-46b7-8514-3ab19146acf5 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,169 | supabase-export-v2 | 1c3c3ba5f982d67e | :param fun: a function with no arguments or ``None`` :param key: a string: key (e.g. "a") or key-symbol (e.g. "space")
Bind *fun* to key-release event of key. If *fun* is ``None``, event bindings
are removed. Remark: in order to be able to register key-events, TurtleScreen
must have the focus. (See method :func:`list... | trusted_official_docs | CPython Docs | :param fun: a function with no arguments or ``None`` :param key: a string: key (e.g. "a") or key-symbol (e.g. "space")
Bind *fun* to key-release event of key. If *fun* is ``None``, event bindings
are removed. Remark: in order to be able to register key-events, TurtleScreen
must have the focus. (See method :func:`list... | :param fun: a function with no arguments or ``None`` :param key: a string: key (e.g. "a") or key-symbol (e.g. "space")
Bind *fun* to key-release event of key. If *fun* is ``None``, event bindings
are removed. Remark: in order to be able to register key-events, TurtleScreen
must have the focus. (See method :func:`list... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ba62a421-b5e0-40db-bf4f-b388d44dd2ed | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,170 | supabase-export-v2 | f37aee2d3ff5c854 | If *fun* is ``None``, event bindings are removed. Remark: in order to be able to register key-events, TurtleScreen must have the focus. (See method :func:`listen`.)
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | If *fun* is ``None``, event bindings are removed. Remark: in order to be able to register key-events, TurtleScreen must have the focus. (See method :func:`listen`.)
.. doctest::
:skipif: _tkinter is None | If *fun* is ``None``, event bindings are removed. Remark: in order to be able to register key-events, TurtleScreen must have the focus. (See method :func:`listen`.)
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bb279617-d35b-44b6-8a11-368a84ad573d | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,007 | supabase-export-v2 | c63997edf5098562 | :param rmode: one of the strings "auto", "user", "noresize"
Set resizemode to one of the values: "auto", "user", "noresize". If *rmode*
is not given, return current resizemode. Different resizemodes have the
following effects: | trusted_official_docs | CPython Docs | :param rmode: one of the strings "auto", "user", "noresize"
Set resizemode to one of the values: "auto", "user", "noresize". If *rmode*
is not given, return current resizemode. Different resizemodes have the
following effects: | :param rmode: one of the strings "auto", "user", "noresize"
Set resizemode to one of the values: "auto", "user", "noresize". If *rmode*
is not given, return current resizemode. Different resizemodes have the
following effects: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c05cf12f-d31f-4432-856d-9a8722f1ae64 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,020 | supabase-export-v2 | e2aaf52db6ed123f | given: return the current shearfactor, i. e. the tangent of the shear angle, by which lines parallel to the heading of the turtle are sheared.
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | given: return the current shearfactor, i. e. the tangent of the shear angle, by which lines parallel to the heading of the turtle are sheared.
.. doctest::
:skipif: _tkinter is None | given: return the current shearfactor, i. e. the tangent of the shear angle, by which lines parallel to the heading of the turtle are sheared.
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c207d909-969c-4dc5-bf5e-6e7938c65ed8 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,832 | supabase-export-v2 | eaedcca37c6b8826 | .. doctest:: :skipif: _tkinter is None
>>> turtle.home()
>>> turtle.position()
(0.00,0.00)
>>> turtle.heading()
0.0
>>> turtle.circle(50)
>>> turtle.position()
(-0.00,0.00)
>>> turtle.heading()
0.0
>>> turtle.circle(120, 180) # draw a semicircle
>>> turtle.position()
(0.00,240.00)
>>> turtle.heading()
180... | trusted_official_docs | CPython Docs | .. doctest:: :skipif: _tkinter is None
>>> turtle.home()
>>> turtle.position()
(0.00,0.00)
>>> turtle.heading()
0.0
>>> turtle.circle(50)
>>> turtle.position()
(-0.00,0.00)
>>> turtle.heading()
0.0
>>> turtle.circle(120, 180) # draw a semicircle
>>> turtle.position()
(0.00,240.00)
>>> turtle.heading()
180... | .. doctest:: :skipif: _tkinter is None
>>> turtle.home()
>>> turtle.position()
(0.00,0.00)
>>> turtle.heading()
0.0
>>> turtle.circle(50)
>>> turtle.position()
(-0.00,0.00)
>>> turtle.heading()
0.0
>>> turtle.circle(120, 180) # draw a semicircle
>>> turtle.position()
(0.00,240.00)
>>> turtle.heading()
180... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c2b4c561-38a5-40a2-a185-625158ea5bbd | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,835 | supabase-export-v2 | 4b5858922ddd7378 | :param size: an integer >= 1 (if given) :param color: a colorstring or a numeric color tuple
Draw a circular dot with diameter *size*, using *color*. If *size* is
not given, the maximum of ``pensize+4`` and ``2*pensize`` is used. | trusted_official_docs | CPython Docs | :param size: an integer >= 1 (if given) :param color: a colorstring or a numeric color tuple
Draw a circular dot with diameter *size*, using *color*. If *size* is
not given, the maximum of ``pensize+4`` and ``2*pensize`` is used. | :param size: an integer >= 1 (if given) :param color: a colorstring or a numeric color tuple
Draw a circular dot with diameter *size*, using *color*. If *size* is
not given, the maximum of ``pensize+4`` and ``2*pensize`` is used. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c30b67c0-0c54-4625-ace8-7bfeeb4ef479 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,003 | supabase-export-v2 | 61d1c35fe0384ced | Initially there are the following polygon shapes: "arrow", "turtle", "circle", "square", "triangle", "classic". To learn about how to deal with shapes see Screen method :func:`register_shape`.
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | Initially there are the following polygon shapes: "arrow", "turtle", "circle", "square", "triangle", "classic". To learn about how to deal with shapes see Screen method :func:`register_shape`.
.. doctest::
:skipif: _tkinter is None | Initially there are the following polygon shapes: "arrow", "turtle", "circle", "square", "triangle", "classic". To learn about how to deal with shapes see Screen method :func:`register_shape`.
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c362a438-3758-4a43-bafe-1ffdbf643ce4 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,744 | supabase-export-v2 | 0296c6803c31b863 | Pen control Drawing state | :func:`pendown` | :func:`pd` | :func:`down` | :func:`penup` | :func:`pu` | :func:`up` | :func:`pensize` | :func:`width` | :func:`pen` | :func:`isdown`
Color control
| :func:`color`
| :func:`pencolor`
| :func:`fillcolor` | trusted_official_docs | CPython Docs | Pen control Drawing state | :func:`pendown` | :func:`pd` | :func:`down` | :func:`penup` | :func:`pu` | :func:`up` | :func:`pensize` | :func:`width` | :func:`pen` | :func:`isdown`
Color control
| :func:`color`
| :func:`pencolor`
| :func:`fillcolor` | Pen control Drawing state | :func:`pendown` | :func:`pd` | :func:`down` | :func:`penup` | :func:`pu` | :func:`up` | :func:`pensize` | :func:`width` | :func:`pen` | :func:`isdown`
Color control
| :func:`color`
| :func:`pencolor`
| :func:`fillcolor` | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c3d45435-399b-49bf-9958-3ff02903d26c | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,299 | supabase-export-v2 | df1654092ff60094 | :ref:`some additional methods <screenspecific>` for managing its appearance (including size and title) and behaviour. ``TurtleScreen``'s constructor needs a :class:`!tkinter.Canvas` or a :class:`ScrolledCanvas` as an argument.
The functional interface for turtle graphics uses the various methods of
``Turtle`` and ``Tur... | trusted_official_docs | CPython Docs | :ref:`some additional methods <screenspecific>` for managing its appearance (including size and title) and behaviour. ``TurtleScreen``'s constructor needs a :class:`!tkinter.Canvas` or a :class:`ScrolledCanvas` as an argument.
The functional interface for turtle graphics uses the various methods of
``Turtle`` and ``Tur... | :ref:`some additional methods <screenspecific>` for managing its appearance (including size and title) and behaviour. ``TurtleScreen``'s constructor needs a :class:`!tkinter.Canvas` or a :class:`ScrolledCanvas` as an argument.
The functional interface for turtle graphics uses the various methods of
``Turtle`` and ``Tur... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c5c56d75-a321-4e9c-bda1-28ab584fe0d5 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,781 | supabase-export-v2 | 736f5a59b0a6c5e4 | :param angle: a number (integer or float)
Turn turtle left by *angle* units. (Units are by default degrees, but
can be set via the :func:`degrees` and :func:`radians` functions.) Angle
orientation depends on the turtle mode, see :func:`mode`. | trusted_official_docs | CPython Docs | :param angle: a number (integer or float)
Turn turtle left by *angle* units. (Units are by default degrees, but
can be set via the :func:`degrees` and :func:`radians` functions.) Angle
orientation depends on the turtle mode, see :func:`mode`. | :param angle: a number (integer or float)
Turn turtle left by *angle* units. (Units are by default degrees, but
can be set via the :func:`degrees` and :func:`radians` functions.) Angle
orientation depends on the turtle mode, see :func:`mode`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c7a10844-7119-47a2-9c76-81f56461641f | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,339 | supabase-export-v2 | eacb68409c29eee9 | e.g. in the same directory as :mod:`!turtle`). - The entries *exampleturtle* and *examplescreen* define the names of these objects as they occur in the docstrings.
The transformation of
method-docstrings to function-docstrings will delete these names from the
docstrings. - *using_IDLE*: Set this to ``True`` if you re... | trusted_official_docs | CPython Docs | e.g. in the same directory as :mod:`!turtle`). - The entries *exampleturtle* and *examplescreen* define the names of these objects as they occur in the docstrings.
The transformation of
method-docstrings to function-docstrings will delete these names from the
docstrings. - *using_IDLE*: Set this to ``True`` if you re... | e.g. in the same directory as :mod:`!turtle`). - The entries *exampleturtle* and *examplescreen* define the names of these objects as they occur in the docstrings.
The transformation of
method-docstrings to function-docstrings will delete these names from the
docstrings. - *using_IDLE*: Set this to ``True`` if you re... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c98915fd-b1a8-4af1-aee4-d4d061da274b | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,748 | supabase-export-v2 | 813147cbc07fed75 | Turtle state Visibility | :func:`showturtle` | :func:`st` | :func:`hideturtle` | :func:`ht` | :func:`isvisible`
Appearance
| :func:`shape`
| :func:`resizemode`
| :func:`shapesize` | :func:`turtlesize`
| :func:`shearfactor`
| :func:`tiltangle`
| :func:`tilt`
| :func:`shapetransform`
| :func:`get_shapepoly` | trusted_official_docs | CPython Docs | Turtle state Visibility | :func:`showturtle` | :func:`st` | :func:`hideturtle` | :func:`ht` | :func:`isvisible`
Appearance
| :func:`shape`
| :func:`resizemode`
| :func:`shapesize` | :func:`turtlesize`
| :func:`shearfactor`
| :func:`tiltangle`
| :func:`tilt`
| :func:`shapetransform`
| :func:`get_shapepoly` | Turtle state Visibility | :func:`showturtle` | :func:`st` | :func:`hideturtle` | :func:`ht` | :func:`isvisible`
Appearance
| :func:`shape`
| :func:`resizemode`
| :func:`shapesize` | :func:`turtlesize`
| :func:`shearfactor`
| :func:`tiltangle`
| :func:`tilt`
| :func:`shapetransform`
| :func:`get_shapepoly` | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cb40ce99-7544-4009-ae70-fb98a38969bf | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,916 | supabase-export-v2 | 2d1787ac9454be3d | .. function:: pen(pen=None, **pendict)
:param pen: a dictionary with some or all of the below listed keys
:param pendict: one or more keyword-arguments with the below listed keys as keywords | trusted_official_docs | CPython Docs | .. function:: pen(pen=None, **pendict)
:param pen: a dictionary with some or all of the below listed keys
:param pendict: one or more keyword-arguments with the below listed keys as keywords | .. function:: pen(pen=None, **pendict)
:param pen: a dictionary with some or all of the below listed keys
:param pendict: one or more keyword-arguments with the below listed keys as keywords | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cbd46d07-45bc-4968-b50c-4b8398c72799 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,664 | supabase-export-v2 | 1a0dc55a14b5386a | turtle graphics provides a representation of a physical "turtle" (a little robot with a pen) that draws on a sheet of paper on the floor.
It's an effective and well-proven way for learners to encounter
programming concepts and interaction with software, as it provides instant,
visible feedback. It also provides conveni... | trusted_official_docs | CPython Docs | turtle graphics provides a representation of a physical "turtle" (a little robot with a pen) that draws on a sheet of paper on the floor.
It's an effective and well-proven way for learners to encounter
programming concepts and interaction with software, as it provides instant,
visible feedback. It also provides conveni... | turtle graphics provides a representation of a physical "turtle" (a little robot with a pen) that draws on a sheet of paper on the floor.
It's an effective and well-proven way for learners to encounter
programming concepts and interaction with software, as it provides instant,
visible feedback. It also provides conveni... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cc39a3d5-046b-4c17-9d7c-80366eca111e | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,295 | supabase-export-v2 | f9385687d53b4f55 | Explanation ===========
A turtle object draws on a screen object, and there a number of key classes in
the turtle object-oriented interface that can be used to create them and relate
them to each other. | trusted_official_docs | CPython Docs | Explanation ===========
A turtle object draws on a screen object, and there a number of key classes in
the turtle object-oriented interface that can be used to create them and relate
them to each other. | Explanation ===========
A turtle object draws on a screen object, and there a number of key classes in
the turtle object-oriented interface that can be used to create them and relate
them to each other. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cc7a0452-afcd-4b46-bc48-7202d38f1e8a | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,341 | supabase-export-v2 | 58b1be33069c4256 | the directory where :mod:`!turtle` is stored and an additional one in the current working directory. The latter will override the settings of the first one.
The :file:`Lib/turtledemo` directory contains a :file:`turtle.cfg` file. You can
study it as an example and see its effects when running the demos (preferably
not ... | trusted_official_docs | CPython Docs | the directory where :mod:`!turtle` is stored and an additional one in the current working directory. The latter will override the settings of the first one.
The :file:`Lib/turtledemo` directory contains a :file:`turtle.cfg` file. You can
study it as an example and see its effects when running the demos (preferably
not ... | the directory where :mod:`!turtle` is stored and an additional one in the current working directory. The latter will override the settings of the first one.
The :file:`Lib/turtledemo` directory contains a :file:`turtle.cfg` file. You can
study it as an example and see its effects when running the demos (preferably
not ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cc94b192-2fac-4b00-8d1b-92a1d7004713 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,051 | supabase-export-v2 | 794fc613061fb003 | .. doctest:: :skipif: _tkinter is None
>>> class MyTurtle(Turtle):
... def glow(self,x,y):
... self.fillcolor("red")
... def unglow(self,x,y):
... self.fillcolor("")
... >>> turtle = MyTurtle()
>>> turtle.onclick(turtle.glow) # clicking on turtle turns fillcolor red,
>>> turtle.onrelease(turtle.unglow) # releasi... | trusted_official_docs | CPython Docs | .. doctest:: :skipif: _tkinter is None
>>> class MyTurtle(Turtle):
... def glow(self,x,y):
... self.fillcolor("red")
... def unglow(self,x,y):
... self.fillcolor("")
... >>> turtle = MyTurtle()
>>> turtle.onclick(turtle.glow) # clicking on turtle turns fillcolor red,
>>> turtle.onrelease(turtle.unglow) # releasi... | .. doctest:: :skipif: _tkinter is None
>>> class MyTurtle(Turtle):
... def glow(self,x,y):
... self.fillcolor("red")
... def unglow(self,x,y):
... self.fillcolor("")
... >>> turtle = MyTurtle()
>>> turtle.onclick(turtle.glow) # clicking on turtle turns fillcolor red,
>>> turtle.onrelease(turtle.unglow) # releasi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.