About 13,900,000 results
Open links in new tab
  1. turtle.Screen().setup() method – Python | GeeksforGeeks

    Mar 22, 2025 · setup () method in Python’s turtle module is used to set up the size and position of the turtle graphics window before drawing. By default, the turtle window appears in the center of the screen with a standard size, but setup () allows customization. Example: Setting a Fixed Window Size. Output:

  2. import - Creating a screen on python (turtle) - Stack Overflow

    Oct 29, 2021 · For an assignment, I have to create a turtle program on python which uses recursion to draw a shape. However, I am unable to even create the necessary screen to draw any shapes on. I am currently using Google Collab. import turtle t = turtle.Turtle()

  3. turtleTurtle graphics — Python 3.13.3 documentation

    2 days ago · 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. A Turtle instance will automatically create a Screen instance if one is not already present.

  4. Creating Screens With Python Turtle: A Beginner's Guide

    Nov 14, 2024 · You can make a screen using Python's turtle by importing the turtle library and using the command: ```python. from turtle import * import turtle ``` Then, you can create a screen object: ```python. ws = turtle.Screen() ```

  5. python - how to set a turtle to a turtle screen - Stack Overflow

    Jun 19, 2017 · Python turtle was designed to either be embedded in a Tk window of your own making or in a Tk window of it's making. The two choices are invoked differently, but by mixing the commands you end up with both. Taking the custom Tk window approach that you started:

  6. Import Screen with Python - YouTube

    Hello People, In This Tutorial I Show how to import Screen with python

  7. Python Turtle Window with examples - Python Guides

    Dec 1, 2021 · In the following code, we will import the turtle library from turtle import *, import turtle. The turtle() method is used to make objects. ws.bgcolor(“cyan”) is used to give the background color to the window.

  8. Python Turtle Graphics Alternatives: Pygame, Tkinter, and More

    Apr 26, 2025 · Controlling Screen Size and Position. import turtle screen = turtle.Screen() # Set the window size and position (width, height, startx, starty) screen.setup(width= 600, height= 400, startx= 100, starty= 50) # Adjust the values # Or, if you need to set the canvas size, use screensize: # screen.screensize(canvwidth=800, canvheight=600, bg="yellow ...

  9. 2. Turtle screen — PC-Python - Read the Docs

    Setup the screen for drawing in. Start by importing the inbuilt turtle library. The class Screen () defines graphics windows for turtles to draw in. This function should be used when turtle is used as a standalone tool for doing graphics. The last line, turtle.done(), has been included in the examples below so the window stays open. 2.2.

  10. Python Turtle Graphics: Understanding and Using turtle.Screen

    Apr 26, 2025 · Setting Screen Boundaries. import turtle screen = turtle.Screen() screen.setworldcoordinates(-300, - 300, 300, 300) # Define coordinate system my_turtle = turtle.Turtle() # Now the turtle can move within the range -300 to 300 in both x and y. my_turtle.forward(200) my_turtle.left(90) my_turtle.forward(200) screen.mainloop() Using screen ...

  11. Some results have been removed
Refresh