[Edu-sig] How to explore Tkinter interactively with IDLE 1.0

Kirby Urner urnerk at qwest.net
Thu Sep 25 17:25:54 EDT 2003

Hi Gregor --

> Shortly, learn how Tkinter works
> 2. Using turtle-graphics
> >>> from turtle import *
> >>> forward(100)

I'm able to accomplish the following without trouble:

>>> from turtle import *
>>> up()
>>> setx(0)
>>> forward(100)
>>> down()
>>> right(180)
>>> forward(200)
>>> ============== RESTART ==============

This last line shows how I close the turtle window, by going up to 'shell'
and clicking on 'restart shell'.  I can't find any more graceful way to

> A Canvas pops up and the turtle starts to move
> and remains ready for the user to interact with
> her interactively.
> Alas! Both examples don't work in ordinary IDLE 1.0 - mode
> I'm well aware of the advantages of IDLE 1.0, especially
> the one always to have a  clean  workspace for testing
> programs - and I'd like to port as much of them to a
> customized development environment I use in my classes.

I am using:

Python 2.3.1 (#47, Sep 23 2003, 23:47:32) [MSC v.1200 32 bit (Intel)] on
Type "copyright", "credits" or "license()" for more information.

    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.
IDLE 1.0      

Re font size, custom colors etc., yes, I believe it, those things do matter.


More information about the Edu-sig mailing list