Skip to main content

An interactive graphical interface to make turtle programming easier & better

Project description

✨Interactive Turtle Lab 🐢🔬

A simple Graphical Interface for executing Python turtle graphics from external files interactively, to make turtle programming easier & better.

Features

  • Browse and load .py files with turtle code
  • A small built-in integrated code editor inside
  • Embedded turtle canvas (no external windows)
  • Built-in sandboxed execution environment

Usage

pip install turtlelab
turtlelab test.py # Execute from CLI
  1. Click Browse... to select a Python file
  2. Review the code from the editor
  3. Click Run to execute (Ctrl+Enter). It will automatically sync from the file loaded as well before running. So you can edit the file in your personal Editor and just click 'Run' and it will auto-fetch code from the file.
  4. Click Clear to reset the canvas
  5. Click Save (Ctrl-s) to save the code in code editor to the loaded file. If the file is not loaded already, it will prompt a filedialog window to ask save name and path

Important Rules

  • Use provided t (turtle) and screen objects directly
  • Do NOT use import turtle in your code

API

Your code has access to:

  • t - RawTurtle object with full turtle graphics API
  • screen - TurtleScreen for the canvas

More features will be coming soon!

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

turtlelab-0.2.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

turtlelab-0.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file turtlelab-0.2.0.tar.gz.

File metadata

  • Download URL: turtlelab-0.2.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for turtlelab-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a0f6ab73d94943e7fe0045d190e75949c56fe1f997095476564b47445b2cb6c6
MD5 70961e5b5fc42583fdf3e131337889eb
BLAKE2b-256 8aeada6414e330c53044b4fea955ddef132558614449f7278e11e139192864f1

See more details on using hashes here.

File details

Details for the file turtlelab-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: turtlelab-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for turtlelab-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f852c508bc052c3a58f73db4d2b1b76ffda35a25062f30b5b98ffa0442d329e2
MD5 8ee8bfb3d912c545b59dbbbfb43899af
BLAKE2b-256 2fc925758314cd3c0d88e4dacfa111e23f16dfb7442a15c595e2055d62b8123d

See more details on using hashes here.

Supported by

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