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 windowgeometry
is a string that will set the initial size of the windowactive_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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for BetterTurtle-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 451b4d7b4c70456d15f8d48145d76bac2bb132db1292b1063b5a69b91f1851a2 |
|
MD5 | 68ae73655d5a4e66f7f61575304dbd35 |
|
BLAKE2b-256 | 9928d155343c4d61651c3bf8ea5ab50eb7dbf8ba8942809e0a9a0b8bcac9c04a |