bob moth added the comment:
Here is a debugged version of mylife, which cloned life2.py to
use a class for turtle-ing. Note the difficulties at the
end of the code -- ontimer(fun, delay) calls for a zero arg
function, so draw() cannot be inside the class. Greatly annoying.
But now we know
bob moth added the comment:
Apparently the draw() function must call itself via ontimer.
That is not in the docs. But 56 variations later...I just copied
Grant Jenks. Apparently he knows what's what.
And done() must be the last line.
If first omitted, only one draw loop executed, b
bob moth added the comment:
Thanks. I appreciate the time and effort.
But I disagree with the characterization of
this problem as 'Resolved'. Turtle is
supposed to be simple enough for children yet
no one can fix simple turtle code and stop
an endless loop?
What is the rus
bob moth added the comment:
OK, thanks. The generated launcher shell command generated
includes '-d -i' flags...
so I tried running without those and voila, life.py terminates
normally. Yay. :-)
2nd, I reviewed the order of commands and I saw that
life2.py and mylife.py (the +1 ve
bob moth added the comment:
hi - i do not use āiā...just drag to
launcher...
and sequence of commands is
a good tip but smells like some
kind of bug to me if the commands
follow written rules.
thanks for looking -
>
>
--
___
Python t
bob moth added the comment:
I rewrote the life2.py using a class in order to eliminate global
variable declarations, and some other things, such as bringing
freegames.util#square() instream to be independent of freegames,
carefully accounting for every pixel output, etc.
Works a little
bob moth added the comment:
looking at the screen snapshot 'life.py alt-q once.jpg' -- the
turtle code keeps running even though System.exit has been completed,
and notice the traceback display in the shell caused by the alt-Q.
a second press of alt-Q terminates the shell and the t
Change by bob moth :
Added file: https://bugs.python.org/file47923/life2.py
___
Python tracker
<https://bugs.python.org/issue35211>
___
___
Python-bugs-list mailin
Change by bob moth :
Added file: https://bugs.python.org/file47922/life.py
___
Python tracker
<https://bugs.python.org/issue35211>
___
___
Python-bugs-list mailin
bob moth added the comment:
Here is the source, just simply Turtles...
https://github.com/grantjenks/free-python-games
<https://github.com/grantjenks/free-python-games>
Attached life.py and life2.py
I don't know what cause the problem. I suspect
there is more of a problem than
bob moth added the comment:
send to you?
.
> On Nov 10, 2018, at 14:41, Eric V. Smith wrote:
>
>
> Eric V. Smith added the comment:
>
> Please create a small program that reproduces the problem. You should strip
> out everything that isn't needed. There
New submission from bob moth :
Running life.py from the Free Python Games requires
alt-Q twice, and the GUI keeps running after System.exit.
Running life2.py, (which is my clone, and I will happily
share it if you want a great stress tester that gobbles
100% of a CPU core for as long as you
12 matches
Mail list logo