On Mon, Feb 1, 2010 at 3:27 AM, Brian Blais wro
>
> I don't see where you've defined a Turtle class to instantiate sir.
>
>
> Turtle is given in turtle.py. I should have subclassed it, but I was being
> lazy. :)
>
> thanks for the fast replies!
>
>
>
> bb
>
>
>
No obvious need to subclass.
Brian Blais wrote:
On Jan 31, 2010, at 23:05 , John Posner wrote:
Try commenting out this statement:
self.turtle.tracer(False)
That helps on Python 2.6.4.
interesting. It seems as if the tracer property is a global one:
Actually, the tracer method that does the work is part of the
T
On Jan 31, 2010, at 23:05 , John Posner wrote:
Try commenting out this statement:
self.turtle.tracer(False)
That helps on Python 2.6.4.
interesting. It seems as if the tracer property is a global one:
In [1]:t1=Turtle()
In [2]:t1.tracer()
Out[2]:1
In [3]:t1.tracer(False)
In [4]:t1.t
On Sun, Jan 31, 2010 at 8:07 PM, Vern Ceder wrote:
> kirby urner wrote:
>>
>> I don't see where you've defined a Turtle class to instantiate sir.
>
> The Turtle class is part of the turtle library, so that's not an issue.
>
Hey, good point Vern, not firing on all cylinders over here.
So I just c
* John Posner:
> I'm on Python 2.5, but using the updated turtle.py Version 1.0.1 -
24. 9. 2009.
> 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.
> Any ideas?
Try commenting out this stateme
> I'm on Python 2.5, but using the updated turtle.py Version 1.0.1 -
24. 9. 2009.
> 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.
> Any ideas?
Try commenting out this statement:
self.turtle.t
I don't see where you've defined a Turtle class to instantiate sir.
Perhaps rename Circle to Turtle and rewrite the circle-drawing expression as:
> c=Turtle(randint(-350,350),randint(-250,250),10,"red")
You are making progress with a wrapper class for the Standard Library turtle.
That's a w
I'm on Python 2.5, but using the updated turtle.py Version 1.0.1 -
24. 9. 2009. 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. Any ideas?
from turtle import *
from numpy.random import randint