BetterTurtle-0.0.3
توضیحات
A better turtle module for python. Uses turtle module to create a turtle object with additional functionality.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | BetterTurtle-0.0.3 |
| نام | BetterTurtle |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/BetterTurtle/ |
| مجوز | - |
# Better-Turtle
## Installation
```
pip install BetterTurtle
```
## Updating
```
pip install --force-reinstall BetterTurtle
```
## Basic usage
```python
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`
نحوه نصب
نصب پکیج whl BetterTurtle-0.0.3:
pip install BetterTurtle-0.0.3.whl
نصب پکیج tar.gz BetterTurtle-0.0.3:
pip install BetterTurtle-0.0.3.tar.gz