Skip to main content

A better turtle module for python. Uses turtle module to create a turtle object with additional functionality.

Project description

Better-Turtle

Installation

pip install BetterTurtle

Updating

pip install --force-reinstall BetterTurtle

Basic usage

from BetterTurtle import BetterTurtle
screen = BetterTurtle()
t = screen.get_turtle()

for i in range(10):
    t.forward(100)
    t.right(90)

screen.not_exit()

The BetterTurtle class can get additional args. Theese are title: str="BetterTurtle", geometry: str="500x500", active_control: bool=True.

  • title is a string that will set be set as the title of the window
  • geometry is a string that will set the initial size of the window
  • active_control is a bool that manages if the buttons work or not. This can be changed after creating the object

gui_input(type: str, title: str, prompt: str) -> (str | None)

Opens a small window where the user can do an input. Returns the input.

type

Can be str, int or float

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BetterTurtle-0.0.3.tar.gz (14.5 kB view hashes)

Uploaded Source

Built Distribution

BetterTurtle-0.0.3-py3-none-any.whl (14.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page