On 27/05/21 4:17 am, Chris Angelico wrote:
Worst case, it
is technically available as the ._fullcircle member, but I would
advise against using that if you can help it!
If you're worried about that, you could create your own
turle subclass that tracks the state how you want.
--
Greg
--
https:/
On Wed, May 26, 2021 at 10:59 AM Michael F. Stemper wrote:
> In order to turn the turtle, I need to select a way to represent
> angles. I could use either degrees or radians (or, I suppose,
> grads). However, for my functions to work, I need to set the
> turtle to that mode. This means that I cou
you, here's what I'd recommend: Propose that the
fullcircle state be added to what pen() returns and can update, and
also possibly propose a context manager, so you can do something like
this:
def f():
with turt.local():
turt.pendown()
...
# once we get here, the turtle's pen state will have been restored
I'm not the person to ask about these, as I don't use the turtle
module, but those would seem fairly plausible enhancements.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On 26/05/2021 13.24, Stefan Ram wrote:
"Michael F. Stemper" writes:
What I would like to do is capture the
angle-representation mode on entry and restore it on return.
another one:
def f( turtle_ ):
my_turtle = turtle_.clone()
# now work with my_turtle on
On 26/05/2021 11.17, Chris Angelico wrote:
On Thu, May 27, 2021 at 1:59 AM Michael F. Stemper wrote:
What I would like to do is capture the
angle-representation mode on entry and restore it on return.
However, looking through the methods of turtle.Turtle(), I
can't find any means of captu
On Thu, May 27, 2021 at 1:59 AM Michael F. Stemper wrote:
> In order to turn the turtle, I need to select a way to represent
> angles. I could use either degrees or radians (or, I suppose,
> grads). However, for my functions to work, I need to set the
> turtle to that mode. This means that I could
I recently discovered the turtle module and have been playing
around with it for the last few days. I've started writing some
functions for turtles, and would like to make them a bit more
robustly than what I currently have.
In particular, I'd like the state of the turtle to be more o
--- On Fri, 11/26/10, Steve Holden wrote:
> From: Steve Holden
> Subject: Re: tilted text in the turtle module
> To: python-list@python.org
> Date: Friday, November 26, 2010, 4:16 AM
> On 11/25/2010 5:58 PM, Yingjie Lan
> wrote:
> > --- On Thu, 11/25/10, Steve Holden
&g
On 11/25/2010 5:58 PM, Yingjie Lan wrote:
> --- On Thu, 11/25/10, Steve Holden wrote:
>>> And even if I made a patch,
>>> then how to publish it?
>>>
>> Once you have a patch, attach it to the issue as a file and
>> try and get
>> it reviewed by a developer for incorporation into a future
>> rele
--- On Thu, 11/25/10, Steve Holden wrote:
> > And even if I made a patch,
> > then how to publish it?
> >
> Once you have a patch, attach it to the issue as a file and
> try and get
> it reviewed by a developer for incorporation into a future
> release.
>
> Note that no Python 2.8 release is pl
On 11/25/2010 10:49 AM, Yingjie Lan wrote:
> --- On Thu, 11/25/10, Steve Holden wrote:
>> From: Steve Holden
>> Subject: Re: tilted text in the turtle module
>> To: python-list@python.org
>> Date: Thursday, November 25, 2010, 7:00 PM
>> On 11/25/2010 5:06 AM, Yin
--- On Thu, 11/25/10, Steve Holden wrote:
> From: Steve Holden
> Subject: Re: tilted text in the turtle module
> To: python-list@python.org
> Date: Thursday, November 25, 2010, 7:00 PM
> On 11/25/2010 5:06 AM, Yingjie Lan
> wrote:
> This sounds like a good idea. To request a
On 11/25/2010 5:06 AM, Yingjie Lan wrote:
> First of all, I'd like to express my deep gratidute to the author of this
> module, it is such a fun module to work with and to teach python as a first
> programming language.
>
> Secondly, I would like to request a feature if it is not too hard to ach
First of all, I'd like to express my deep gratidute to the author of this
module, it is such a fun module to work with and to teach python as a first
programming language.
Secondly, I would like to request a feature if it is not too hard to achieve.
Currently, you can only write texts horizonta
Hello,
I would like to find a way to pause, and get mouse input in the
turtle module. Since it is built on tk, I thought perhaps there
would be an easy way, but I am stumped. Specifically, I'd like
something like:
x,y,button=mouse_input() # pause in here until the mouse is clicked
Gregor FYI:
You'll find me linking to one Gregor in Vienna in this blog post, just
beneath an archival photo of work by Alexander Graham Bell.[1]
http://worldgame.blogspot.com/2009/12/meeting-with-sam.html
... providing more context and spin for this rhombic triancontahedron
thread, all that muc
On Mon, Nov 30, 2009 at 4:31 PM, Gregor Lingl wrote:
<< fascinating code >>
>
> Hoping, you will find this a bit interesting,
> best regards
>
> Gregor
>
Really enlightening, both mathematically and from a coding point of
view. I hadn't used turtle.py enough yet to know about the built-in
"con
kirby urner schrieb:
I'm glad turtle graphics intersected my thinking re extended precision
decimals (Decimal type) on edu-sig just now.
I've updated my tmods.py to contain a turtle rendering the plane-net of a T-mod:
http://www.4dsolutions.net/ocn/python/tmod.py (runnable source)
http://www.
* Edward Cherlin:
On Sun, Nov 29, 2009 at 11:34, Brian Blais wrote:
After a bit of playing, I realized that I couldn't think of many exaples
which use turtle with conditional structures (if- and while- statements),
Repeat is used much more often. but of course we can provide examples
of any
I'm glad turtle graphics intersected my thinking re extended precision
decimals (Decimal type) on edu-sig just now.
I've updated my tmods.py to contain a turtle rendering the plane-net of a T-mod:
http://www.4dsolutions.net/ocn/python/tmod.py (runnable source)
http://www.flickr.com/photos/17157..
ute the coins randomly ... Does that alter
the average "harvest"?
Just a suggestion ...
Regards,
Gregor
Brian Blais schrieb:
Hello,
I was just playing with the turtle module, and thought it was an
interesting way to augment the introduction to python (I teach college
students, who
ot; in a "turtle tank" i.e. each
turtle is more like a biplane in a WWI dogfight (Snoopy vs. Red
Baron), with all those extra degrees of freedom (roll, pitch, yaw).
Python's turtle module is not, repeat not, an implementation of Logo
in the Python language. It's
On Nov 29, 2009, at 17:51 , Edward Cherlin wrote:
If you use the Python-programmable tile in Turtle Art in Sugar, or
Smalltalk in the Turtle Graphics in Etoys, it's even better.
I'll have to check this out.
sequences, where I can use a conditional to stop when the turtle would
go off the scr
On Sun, Nov 29, 2009 at 11:34, Brian Blais wrote:
> Hello,
> I was just playing with the turtle module, and thought it was an interesting
> way to augment the introduction to python (I teach college students, who
> haven't had any programming). It's a great way to intr
Hello,
I was just playing with the turtle module, and thought it was an
interesting way to augment the introduction to python (I teach
college students, who haven't had any programming). It's a great way
to introduce functions, for-loops, and general program structures.
Afte
Hi all,
A few days ago I've created a repository of turtle graphics
demos/applications, that use Python's new turtle module.
You can find it at at google code:
http://python-turtle-demo.googlecode.com
There are two versions of the collection: one for use with Python 3.1
and one fo
26 matches
Mail list logo