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
  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 s (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
  • s - 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.5.0.tar.gz (92.1 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.5.0-py3-none-any.whl (93.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: turtlelab-0.5.0.tar.gz
  • Upload date:
  • Size: 92.1 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.5.0.tar.gz
Algorithm Hash digest
SHA256 e58180e8c633b8d0fb991c84d6b0771ad77d06d567a901ea0b9921a487e74298
MD5 e90e36c887ab469d6995e29c0894fb5d
BLAKE2b-256 038e45a17d773ced9d5c31c82f0bb09b2b9b1ea5a48d4ba19f57195b1f90756e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: turtlelab-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 93.4 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 636d409eb1bc9dbf22fb6637b118c1c5d0efe9675ae18f3ede15721e20cc0222
MD5 8d0a475af2132b76e94da0111df7ce24
BLAKE2b-256 09ed6f967aaf368f57da4e766c5dcbe1414ee1520a3a512f6abacf8ae29dcbad

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