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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file BetterTurtle-0.0.3.tar.gz.

File metadata

  • Download URL: BetterTurtle-0.0.3.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for BetterTurtle-0.0.3.tar.gz
Algorithm Hash digest
SHA256 55068f5ef473eb991a3fedf0b538b96731e7c17d54282c46eef52cb24caed5d4
MD5 d159508ec46e686090a2b9d6042179db
BLAKE2b-256 2d2f70bf4d2157c78fb61be1e088ba2a27eab3b54f9b706cf62d3b9185a27155

See more details on using hashes here.

File details

Details for the file BetterTurtle-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: BetterTurtle-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for BetterTurtle-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 451b4d7b4c70456d15f8d48145d76bac2bb132db1292b1063b5a69b91f1851a2
MD5 68ae73655d5a4e66f7f61575304dbd35
BLAKE2b-256 9928d155343c4d61651c3bf8ea5ab50eb7dbf8ba8942809e0a9a0b8bcac9c04a

See more details on using hashes here.

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