The issue is here: Make turtle.pensize smarter · Issue #133244 · python/cpython · GitHub
A PR as soon I can.
The issue is here: Make turtle.pensize smarter · Issue #133244 · python/cpython · GitHub
A PR as soon I can.
There is a discussion regarding 0 that needs to be resolved.
I recently came across this thread and wanted to mention that I’m working on basthon-turtle, a browser-friendly implementation of Python’s turtle module with support for Jupyter, Marimo, and Pyodide. The project builds on Romain Casati’s port of Brython’s turtle implementation by bearney74 and André Roberge.
I’m particularly interested in the proposal to decouple turtle from Tkinter. A supported way to plug in alternative rendering backends while preserving the familiar turtle API would be very useful. I’d be interested in contributing to that effort, and I hope I’ll find the time as I continue working on basthon-turtle.
I really like this idea, including both the possibility of being able to test outside of a graphics environment and also of having multiple graphical environment in which to run. I always felt that “turtle 2” tried to do too much, including having various “event” based on interaction with a mouse.
I feel that preserving a turtle module in the standard library, capable of using Tkinter but available in other environments, would be truly excellent.
Gregor rewrote turtle2 in term of intermediate classed implemented in tkinter but intended to be implementable in other graphics languages. I don’t believe he ever did an alternate implementation, so they may or may not be suitable for the project.
A python-on-the-web project made at least some of turtle available by implementing a minimal subset of tkinter API in web svg. I found the code interesting, but don’t remember anything, whether it was reported here on discuss or the previous new ideas list or possibly elsewhere.
I like these ideas - thanks for the good thoughts on those.
Feel free to contact me in private to help going forward. (btw, I am no core developer - just someone who likes making simpler what is complicated - and Turtle has had it long overdue)
not sure we can expose emails here - but, hey, these had been public for decades on the old mailing lists: jsobueno@ gmail.com
I’m happy to review turtle PRs. ![]()