[issue11096] Multiple turtle tracers

2011-02-02 Thread Alex McNerney

Alex McNerney amcnerne...@yahoo.com added the comment:

To be more clear, in the sample code, the drawing animation of the red 
star-spiral is smooth, whereas the drawing animation of the black star-spiral 
is spasmodic.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11096
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Turtle crash with IDLE on Mac OS X 10.6

2011-02-01 Thread Alex McNerney

Alex McNerney amcnerne...@yahoo.com added the comment:

Sorry to keep bothering, but running Python 2.7.1:88286 (maintenance) on 
ActiveState Tcl/Tk 8.5.9 causes the idle to hang when a simple script like:

x = raw_input(x: )
print x

is run. Is this a bug in Tcl/Tk? Looking in the logs I see several instances of 
setCanCycle: is deprecated.  Please use setCollectionBehavior instead Does 
this have any relevancy?

Relating to this, I don't know if it is proper to ask here, but is it possible 
to link Python to a specific Tcl/Tk when compiling from the source?

Note: When running Python 2.7.1 (32-bit from installer) with Tcl/Tk 8.4, the 
above problem is not there.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Using Turtle with IDLE on Mac OS X

2011-02-01 Thread Alex McNerney

Alex McNerney amcnerne...@yahoo.com added the comment:

Thank you so much for pointing out the -n option!
Hopefully the Tk 8.5.9 input issue will be solved soon enough.
Thank you both again.
I'm not sure if I'm supposed to or not, but I am marking this as closed – 
seeing as the main issue has been solved.

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Using Turtle with IDLE on Mac OS X

2011-02-01 Thread Alex McNerney

Alex McNerney amcnerne...@yahoo.com added the comment:

solved* or rather, a workaround has been found.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11096] Multiple turtle tracers

2011-02-01 Thread Alex McNerney

New submission from Alex McNerney amcnerne...@yahoo.com:

In Python 2.7 and 2.6 (only ones I have tried), there is a bug in the turtle 
module's tracer() function, when applying it to multiple turtles using the same 
value.

When two turtles are defined (to draw simultaneously), and both turtles' 
tracers are set to the same number, one of the turtles does not end up 
following its tracer value. (It's a little hard to explain...look at/try the 
sample code)

The following script will recreate this glitch:

from turtle import *

t1 = Turtle()
t2 = Turtle()

for t in turtles():
t.ht()
t.speed(0)
t.tracer(10)

t1.color(black)
t2.color(red)

for x in range(500):
t1.forward(x)
t2.forward(x)
t1.left(144.5)
t2.right(144.5)


--
messages: 127718
nosy: amcnerney13
priority: normal
severity: normal
status: open
title: Multiple turtle tracers
type: behavior
versions: Python 2.6, Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11096
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Turtle crash with IDLE on Mac OS X 10.6

2011-01-31 Thread Alex McNerney

Alex McNerney amcnerne...@yahoo.com added the comment:

It may be because the program that I am trying to run automatically exits, I do 
not know yet how to keep a turtle program running (waiting for input). The only 
way I know so far is to use the function exitonclick(), but when using that, 
my I cannot use any other mouseevents in my program. (Help?) Anyways, an 
example of a script that will cause turtle to hang/crash is even such a simple 
one as:

import turtle as t
def flfr():
t.fd(10)
t.lt(45)
t.fd(10)
t.rt(45)
t.onkey(flfr, Up)
t.listen()

Is there anyway to keep a turtle program running, waiting for user interaction 
without using the exitonclick() function? Also, thank you for pointing out the 
maintenance svn, I did an svn checkout, compiled, and installed it and it fixed 
other problems that I was having with Python 2.7.1 ActiveState Tcl/Tk 8.5.9 
(such as hanging when running a program when the shell isn't open.)

Another quick question that you don't have to answer: is there anyway to ignore 
interaction (keystrokes, mouseclicks) while an onkey function is activated? 
Like if I make a function that takes 10 seconds to complete, can I ignore all 
interaction while that function is being run?

Thank you for your time.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Turtle crash with IDLE on Mac OS X 10.6

2011-01-30 Thread Alex McNerney

New submission from Alex McNerney amcnerne...@yahoo.com:

Info: I have Python 2.7.1:86832 (32-bit) installed using ActiveState Tcl/Tk 
8.5.9 on Mac OS X 10.6

Problem:
Whenever I try to run (from the IDLE) a Python script using the turtle module, 
the window that shows up will draw anything passed to it, but it will not come 
to the front using the listen() function, nor will clicking on the window do 
anything more than cause the spinning beach ball to appear. Because it does not 
come the the foreground, functions like onkey() and onclick() are completely 
unusable.

However, when said Python script is run from the Terminal, the window is 
completely responsive. I believe this to be some sort of problem with the 
IDLE.app

Things that I have tried:
Tried different versions of tcl/tk: 8.4.19, 8.4.7, 8.5.9
Tried different versions of Python 2.7.1: 32-bit, 32/64-bit, 32-bit compiled 
from source.

Other things that may be useful:
This probably has no relevancy, but just in case:
In the .mpkg installed Python 2.7.1 (32-bit), the IDLE says the GCC version is 
4.0.1
In the source compiled version, it says 4.2.1

It is quite annoying to not be able to use the IDLE to create and test programs 
using the turtle module. Please help.

--
assignee: ronaldoussoren
components: IDLE, Macintosh, Tkinter
messages: 127577
nosy: amcnerney13, ronaldoussoren
priority: normal
severity: normal
status: open
title: Turtle crash with IDLE on Mac OS X 10.6
type: crash
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com