This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bmoth
Recipients bmoth, eric.smith, gregorlingl, ned.deily, ronaldoussoren, willingc, xtreak
Date 2018-11-12.04:18:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541996310.13.0.788709270274.issue35211@psf.upfronthosting.co.za>
In-reply-to
Content
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, but it quits itself.
With done(), it loops via ontimer().

<pre><code>
def draw():
    myDrawCells()
    update()
    myComputeOneStep()
    ontimer(draw, LOOP_TIMER)
setup(BOARD_SIDE, BOARD_SIDE, None, None)
hideturtle()
tracer(False)
clear()
myInitialize()
draw()
done()
</code></pre>

So now alt-Q works in life2DEBUG.py. attached.
History
Date User Action Args
2018-11-12 04:18:30bmothsetrecipients: + bmoth, ronaldoussoren, gregorlingl, eric.smith, ned.deily, willingc, xtreak
2018-11-12 04:18:30bmothsetmessageid: <1541996310.13.0.788709270274.issue35211@psf.upfronthosting.co.za>
2018-11-12 04:18:30bmothlinkissue35211 messages
2018-11-12 04:18:29bmothcreate