<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
I'm on Python 2.5, but using the updated turtle.py&nbsp;Version 1.0.1 - 24. 9. 2009. &nbsp;The following script draws 5 circles, which it is supposed to, but then doesn't draw the second turtle which is supposed to simply move forward. &nbsp;Any ideas?<div><br></div><div><div>from turtle import *</div><div>from numpy.random import randint</div><div><br></div><div>resetscreen()</div><div><br></div><div>class Circle(object):</div><div><br></div><div>&nbsp;&nbsp; &nbsp;def __init__(self,x,y,r,color):</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.x=x</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.y=y</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.r=r</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.color=color</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle=Turtle(visible=False)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle.tracer(False)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.draw()</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp;&nbsp; &nbsp;def draw(self):</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle.penup()</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle.setposition(self.x,self.y)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle.setheading(0)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle.backward(self.r)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle.pendown()</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle.fill(True)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle.pencolor("black")</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle.fillcolor(self.color)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle.circle(self.r) &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle.fill(False)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.turtle.penup()</div><div><br></div><div><br></div><div>for i in range(5):</div><div><br></div><div>&nbsp;&nbsp; &nbsp;c=Circle(randint(-350,350),randint(-250,250),10,"red")</div><div>&nbsp;&nbsp; &nbsp;</div><div>&nbsp;&nbsp; &nbsp;</div><div>T=Turtle()</div><div>T.forward(100)</div><div>T.forward(100)</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>thanks,</div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>bb</div><br><div> <span class="Apple-style-span" style="font-size: 13px; "><div>--&nbsp;</div><div>Brian Blais</div><div><a href="mailto:bblais@bryant.edu">bblais@bryant.edu</a></div><div><a href="http://web.bryant.edu/~bblais">http://web.bryant.edu/~bblais</a></div><div><a href="http://bblais.blogspot.com">http://bblais.blogspot.com</a>/</div><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"> </div><br></div></body></html>