3 ms·
This is my little side project that I've been working on for a few months. It is a way for curious people who are not computer-savvy to teach themselves Python
by cool-RR 17y ago
This is my little side project that I've been working on for a few months.
It is a way for curious people who are not computer-savvy to teach themselves Python.
Of course, it can also be used in a class with an instructor.
Yes, I am aware of turtle.py, the turtle module shipped with the Python standard library. It has a few problems which I found unforgivable: mainly that it's not geared towards people who may not know anything about programming, or how to use IDLE. This is why I decided to make this project.
I'd love to get your comments and feedback.
- cesare 17y agoNice. I see from the source that you're using wxwidgets so it should be easy to port it to OS X and linux as well.
- cool-RR 17y agoThat's right, it's all Python and wxPython so porting it should be trivial. A Mac version will come, I hope that someone more Mac-savvy than myself will help me with making it.
- lowdown 17y agoI'll look at it today and see if I can get it up on the Mac
- d0mine 17y agoIt works as is on Ubuntu. PythonTurtle screenshot with a dragon curve http://img35.imageshack.us/i/screenshotpythonturtled.png/ http://img35.imageshack.us/i/screenshotpythonturtled.png/ >>> def dragon(level=4, size=200, direction=45): ... """From http://rosettacode.org/wiki/Dragon_curve ... """ ... if level == 0: ... go(size) ... return ... turn(direction) ... dragon(level-1, size/1.41421356237, 45) ... turn(-direction*2) ... dragon(level-1, size/1.41421356237, -45) ... turn(direction) ... >>> dragon(10)
- orp 17y agoHi, Cool project. The only issue I found with it so far is that unlike the old logo, the borders of the 'world' aren't circular. That means that if you type 'go(500)' from the opening position, the turtle disappears. But it's a minor issue, really. My kid is 4 and I'm going to show it to him tomorrow, see how he likes it.
- cool-RR 17y agoI agree, it's a bit annoying that it continues into infinity; I considered having a "spherical" world, but the problem is that the window size may change, and I don't know how I could keep it consistent when it happens. If you got an idea on how to solve that I'll consider it.