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 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.4.0.tar.gz (92.0 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.4.0-py3-none-any.whl (93.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: turtlelab-0.4.0.tar.gz
  • Upload date:
  • Size: 92.0 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.4.0.tar.gz
Algorithm Hash digest
SHA256 c18ce1a22fba39f3b58210387cb1c74569f8fec468233c8aad140f9d131d612e
MD5 f9ee73c40be07321495e8fcb049c7fe3
BLAKE2b-256 5108ce9eb168a54e6eed5569d6d2789e9bd1fc69ebb545d815d51b5c563096f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: turtlelab-0.4.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a0c26669252fa94f285edf3f4a81507fba38e7664c495060130690e0d445875
MD5 f2eff5297e30fa01af6a46bbdf9fbd99
BLAKE2b-256 b3cfeaa2719605bfec6d438ced6d9fe3219dfcf13e546da55ae7abcc6f611936

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